Exemplo n.º 1
0
 public void CheckLifetime(Entities.Unit parent)
 {
     if (mMaxLifetime > -1)
     {
         if (++mCurrentLifetime >= mMaxLifetime)
         {
             parent.RemoveModule(this.Type, this);
         }
     }
 }
Exemplo n.º 2
0
 public override void Message()
 {
     Parent.RemoveModule(ModuleType.NewTurn, this);
     Parent.RemoveStatus("Attached:");
     Parent.RemoveStatus("to " + AttachedToName);
 }