示例#1
0
        public static InGameManager GetInstance()
        {
            if (!instance)
            {
                instance = GameObject.FindObjectOfType(typeof(InGameManager)) as InGameManager;

                if (!instance)
                {
                    ErrorMessages.Instance.MissingSingletoneObject("InGameManager");
                }
            }

            return(instance);
        }
示例#2
0
 /// <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();
 }
示例#3
0
 /// <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();
 }
示例#4
0
        ////////////////////////////////////////////////////////////////////////
        /// Func

        /// <summary>
        /// <para>Eng. Pushed "New Game" Button in Main Menu State. </para>
        /// <para>Kor. 메인 메뉴 상태에서, "새 게임" 버튼을 눌렀습니다. </para>
        /// </summary>
        public void PushedMainMenuNewGameButton()
        {
            InGameManager.GetInstance().PushedNewGame();
        }