예제 #1
0
    public void ChangeGameStatus(GameStatics.GAME_STATUS nextStatus)
    {
        GameStatics.GAME_STATUS beforeGameStatus = currentGameStatus;
        currentGameStatus = nextStatus;

        if (onChangeGameStatus != null)
        {
            onChangeGameStatus(beforeGameStatus, currentGameStatus);
        }
    }
예제 #2
0
    private void Awake()
    {
        if (instance == null)
        {
            instance = GetComponent <GameManager>();
            DontDestroyOnLoad(this);
        }
        else
        {
            Destroy(this.gameObject);
        }

        currentGameStatus = GameStatics.GAME_STATUS.NONE;
        ChangeGameStatus(GameStatics.GAME_STATUS.SPLASH);
    }