示例#1
0
 public void DeregisteKiller(Killer killer)
 {
     if (this.killers.ContainsKey(killer.GetID()))
     {
         this.killers.Remove(killer.GetID());
     }
     return;
 }
示例#2
0
 public void RegisteKiller(Killer killer)
 {
     print("Register: killer" + killer.GetID().ToString());
     if (!this.killers.ContainsKey(killer.GetID()))
     {
         this.killers.Add(killer.GetID(), killer);
         this.tm.doOnce <int, Killer>(killer.GetFireInterval(), this.TriggerAttack, killer.GetID(), killer);
     }
     return;
 }