예제 #1
0
    void Awake()
    {
        instance = this;

        if (Application.loadedLevelName == "MainMenu")
        {
            gameState = GlobalInfo.GameState.MENU;
        }
        else
        {
            gameState = GlobalInfo.GameState.INGAME;
        }

        MainCameraController.FindOrCreate();
        SoundController.FindOrCreate();
    }