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