public override void PerformActions() { if (InsideBuilding != null) { // we are inside a building InsideBuilding.AffectObject(this); } else { // Did I think about something? IAction a = ActionManager.Pop(); if (a != null && Food.Value > 0) { a.AffectObject(this); } } }