Exemplo n.º 1
0
        public int Update()
        {
            result = teams.Update();

            if (result == EndResult.Persist)
            {
                parent.AddScore(teams.winTeam);
                var count = MainGameParameter.instance.GetWinCount(teams.winTeam);

                parent.SetNextState(count >= 3 ? STATENAME.End : STATENAME.Result);
            }
            return((int)STATENAME.Changeless);
        }