Пример #1
0
 /// <summary>
 /// Stops the game
 /// </summary>
 /// <param name="player">Player stopping the game</param>
 public void Stop( Player player )
 {
     if ( instance == null ) {
         player.Message( "Cannot stop GuildGame: A game is not in progress" );
         return;
     }
     task.Stop();
     foreach ( Player p1 in InGame ) {
         p1.PublicAuxStateObjects.Remove( "GameEnabled" );
     }
     instance = null;
 }
Пример #2
0
 public GuildGame()
 {
     instance = this;
 }