42 lines
859 B
C#
42 lines
859 B
C#
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.SceneManagement;
|
|
|
|
public class GameManager : DontDestroy<GameManager>
|
|
{
|
|
eScene nowScene;
|
|
|
|
Excel excel;
|
|
|
|
protected override void OnAwake()
|
|
{
|
|
Application.targetFrameRate = 120;
|
|
nowScene = eScene.Title;
|
|
//Datas.xlsx
|
|
// Dynamic
|
|
// Unit
|
|
excel = new Excel(new List<string>() {"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);
|
|
}
|
|
}
|