private void ChangePlayer(Protocol.BaseProtocol protocol) { Protocol.ChangePlayerProtocol changePlayer = protocol as Protocol.ChangePlayerProtocol; currentPlayerID = changePlayer.player_id; GameInfoUpdated?.Invoke(); }
private void ChangePlayer(Protocol.BaseProtocol protocol) { Protocol.ChangePlayerProtocol changePlayer = protocol as Protocol.ChangePlayerProtocol; if (countdownTimer != null) { StopCoroutine(countdownTimer); } countdownTimer = StartCoroutine(Countdown(Time.time + changePlayer.turn_len)); }