コード例 #1
0
 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);
        }
コード例 #4
0
 public bool IsPeeing()
 {
     return(choreDriver.HasChore() && choreDriver.GetCurrentChore().SatisfiesUrge(Db.Get().Urges.Pee));
 }