﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class Play : MonoBehaviour
{
    private int savedGames;

    public void Decide()
    {
        SaveManager.Initialize();
        SaveManager.GetSaves();

        if(!SaveManager.AreThereSaves)
        {
            SaveManager.CurrentSaveIndex = 0;
            SaveManager.CurrentSave = new SaveGame();
            LoadingManager.ChangeLevel("Hub");
        }
        else
        {
            MainMenuTransition.Instance.ChangePanel(2);
        }
    }

}
