Beispiel #1
0
 private void OnStateChanged(GameStateInfo.State newState)
 {
     if (newState != GameStateInfo.State.IntroAnimating)
     {
         Destroy(gameObject);
     }
 }
Beispiel #2
0
    private void OnGameStateChanged(GameStateInfo.State newState)
    {
        Debug.Log("OnGameStateChanged: " + newState);

        foreach (var player in _gameInfo.m_players)
        {
            player.SetMovingEnable(newState == GameStateInfo.State.Playing);
        }

        if (newState == GameStateInfo.State.GameOver)
        {
            m_gameOverDirector.enabled = true;
        }
    }