示例#1
0
 void OnRoundsFinished(int numberOfRoundsWon)
 {
     game.gameActive         = false;
     game.CurrentScoreRecord = numberOfRoundsWon;
     game.SetCurrentState(game.ResultState);
     return;
 }
        public void Update(float delta)
        {
            timer -= delta;

            if (timer < 0)
            {
                game.SetCurrentState(game.PlayState);
                return;
            }
        }