Exemple #1
0
        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();
        }
Exemple #2
0
 private void SpawnedHeadquarter(Headquarter headquarter)
 {
     _headquarters.Add(headquarter);
 }