private void DespawnedHeadquarter(Headquarter headquarter) { _headquarters.Remove(headquarter); if (_headquarters.Count != 1) { return; } //else int winnerPlayerID = _headquarters[0].connectionToClient.connectionId; Debug.Log("Game Finished only one player left !!!"); CilentRpcGameOver($"Winner : Player {winnerPlayerID}"); ServerOnGameOver?.Invoke(); }
private void SpawnedHeadquarter(Headquarter headquarter) { _headquarters.Add(headquarter); }