예제 #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;
 }