public static InGameManager GetInstance() { if (!instance) { instance = GameObject.FindObjectOfType(typeof(InGameManager)) as InGameManager; if (!instance) { ErrorMessages.Instance.MissingSingletoneObject("InGameManager"); } } return(instance); }
/// <summary> /// <para>Eng. Pushed "Load" Button in Main Menu State. </para> /// <para>Kor. 메인 메뉴 상태에서, "불러오기" 버튼을 눌렀습니다. </para> /// </summary> public void PushedMainMenuLoadButton() { InGameManager.GetInstance().GameState = Enum.GameState.SaveLoad; SaveLoadSlotManager.GetInstance().RequestLoadSlot(); }
/// <summary> /// <para>Eng. Pushed "Option" Button in Main Menu State. </para> /// <para>Kor. 메인 메뉴 상태에서, "설정" 버튼을 눌렀습니다. </para> /// </summary> public void PushedMainMenuOptionButton() { InGameManager.GetInstance().GameState = Enum.GameState.Option; OptionManager.GetInstance().RequestOpenOptionInterface(); }
//////////////////////////////////////////////////////////////////////// /// Func /// <summary> /// <para>Eng. Pushed "New Game" Button in Main Menu State. </para> /// <para>Kor. 메인 메뉴 상태에서, "새 게임" 버튼을 눌렀습니다. </para> /// </summary> public void PushedMainMenuNewGameButton() { InGameManager.GetInstance().PushedNewGame(); }