void Awake() { if (_instanse) { DestroyImmediate(gameObject); return; } _instanse = this; DontDestroyOnLoad(gameObject); if (Application.loadedLevel == 0) { _gameState = G_MANAGER_STATE.START_MENU; } else if (Application.loadedLevel == 1) { _gameState = G_MANAGER_STATE.PLAY; } }
public void SetDifficulty(GAME_DIFFICULTY difficulty) { this._difficulty = difficulty; _gameState = G_MANAGER_STATE.PLAY; }