Esempio n. 1
0
 private void Instance_OnNewPlayer(object sender, PlayerDetectedEventArgs e)
 {
     if (!this.players.Any(p => p == e.PlayerId))
     {
         this.players.Add(e.PlayerId);
     }
     Console.WriteLine("3333333333");
     UpdatePlayerList();
 }
Esempio n. 2
0
        private void Instance_OnPlayerLost(object sender, PlayerDetectedEventArgs e)
        {
            if (this.players.Any(p => p == e.PlayerId))
            {
                this.players.Remove(e.PlayerId);
            }

            UpdatePlayerList();
        }
Esempio n. 3
0
 private void Instance_OnPlayerDetected(object sender, PlayerDetectedEventArgs e)
 {
     this.currentPlayer = e.PlayerId;
     this.UpdatePlayerList();
 }