Example #1
0
 public void Sim1000ms(float dt)
 {
     if (!((UnityEngine.Object) this == (UnityEngine.Object)null))
     {
         if ((UnityEngine.Object)navigator == (UnityEngine.Object)null)
         {
             navigator = GetComponent <Navigator>();
         }
         if (!((UnityEngine.Object)navigator != (UnityEngine.Object)null) || navigator.IsMoving())
         {
             if ((UnityEngine.Object)choreDriver == (UnityEngine.Object)null)
             {
                 choreDriver = GetComponent <ChoreDriver>();
             }
             if ((UnityEngine.Object)choreDriver != (UnityEngine.Object)null)
             {
                 Chore currentChore = choreDriver.GetCurrentChore();
                 if (currentChore != null && currentChore is FetchAreaChore)
                 {
                     MinionResume component = GetComponent <MinionResume>();
                     if ((UnityEngine.Object)component != (UnityEngine.Object)null)
                     {
                         component.AddExperienceWithAptitude(Db.Get().SkillGroups.Hauling.Id, dt, SKILLS.ALL_DAY_EXPERIENCE);
                     }
                 }
             }
         }
     }
 }