Пример #1
0
 public void Leave()
 {
     this.Game.Players.Remove(this);
     this.Game    = null;
     this.IsAlive = false;
 }
Пример #2
0
 public Player(string name, GameInstance game)
 {
     this.Name     = name;
     Players[name] = this;
     this.Join(game);
 }