public void UseAspect(BotMentalAspect someAspect) { try { if (someAspect is BotAction) { BotAction act = (BotAction)someAspect; act.InvokeReal(); return; } if (InDialogWith != null) { Actor.TalkTo(InDialogWith, someAspect); return; } if (someAspect is SimObject) { SimObject someObject = (SimObject)someAspect; DoBestUse(someObject); } } finally { //if (IsThinking) // CurrentAction = this; } }
public override void InvokeReal() { Act.InvokeReal(); }