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