using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public class GameManager : DontDestroy { eScene nowScene; Excel excel; protected override void OnAwake() { Application.targetFrameRate = 120; nowScene = eScene.Title; //Datas.xlsx // Dynamic // Unit excel = new Excel(new List() {"Datas.xlsx"}); //사용법 //Debug.Log(excel.dynamic.selectVelue("maxSwingCount")); } public enum eScene { Title = 0, Main, Game } public void NextScene(eScene GoingScene) { nowScene = GoingScene; SceneManager.LoadScene((int)nowScene); } public void NextScene() { nowScene = nowScene + 1; SceneManager.LoadScene((int)nowScene); } }