CloudWars.SpaceBattle.SpaceBattleGame.PlayerReady C# (CSharp) Метод

PlayerReady() публичный Метод

public PlayerReady ( System.Guid playerId ) : void
playerId System.Guid
Результат void
        public void PlayerReady(Guid playerId)
        {
            if (playerId == Player1)
                Player1Ready = true;
            else
                Player2Ready = true;
            if (Player1Ready && Player2Ready)
                Initialized = true;
            //save the match
            UpdateMatch();
        }