示例#1
0
 protected override void OnTick()
 {
     if (countdown == 6)
     {
         //announcer.Say( String.Format( "The match is {0} v.s. {1}.", m1.Name, m2.Name ) );
         countdown -= 1;
     }
     else if (countdown == 5)
     {
         t.announcer.Say(String.Format("The Match begins in {0}", countdown));
         countdown -= 1;
     }
     else if (countdown == 0)
     {
         t.announcer.Say("FIGHT!");
         foreach (Mobile m in Team1.getOwners())
         {
             m.Paralyzed = false;
         }
         foreach (Mobile m in Team2.getOwners())
         {
             m.Paralyzed = false;
         }
         //announcer.Delete();
     }
     else
     {
         t.announcer.Say(String.Format("{0}", countdown));
         countdown -= 1;
     }
     this.Stop();
 }