public bool IsEating()
 {
     if ((Object)assigned != (Object)null && assigned.assignee != null)
     {
         GameObject targetGameObject = assigned.assignee.GetSoleOwner().GetComponent <MinionAssignablesProxy>().GetTargetGameObject();
         if ((bool)targetGameObject)
         {
             ChoreDriver component = targetGameObject.GetComponent <ChoreDriver>();
             return((Object)component != (Object)null && component.HasChore() && component.GetCurrentChore().choreType.urge == Db.Get().Urges.Eat);
         }
     }
     return(false);
 }
示例#2
0
 public bool IsEating()
 {
     return(choreDriver.HasChore() && choreDriver.GetCurrentChore().choreType.urge == Db.Get().Urges.Eat);
 }
示例#3
0
        public bool IsEating()
        {
            ChoreDriver component = base.master.GetComponent <ChoreDriver>();

            return(component.HasChore() && component.GetCurrentChore().choreType.urge == Db.Get().Urges.Eat);
        }
 public bool IsPeeing()
 {
     return(choreDriver.HasChore() && choreDriver.GetCurrentChore().SatisfiesUrge(Db.Get().Urges.Pee));
 }