public override void Enter()
 {
     if (inventory.HasResources())
     {
         addToStockpileDelayCoroutine = parentBehaviour.StartCoroutine(TimerUtils.WaitAndPerform(SimulationSettings.NPCStockpilingAnimationStartDelay, AddToStockpile));
     }
     else
     {
         TransitionToIdle();
     }
 }
Beispiel #2
0
 public override void Enter()
 {
     if (!inventory.HasResources())
     {
         harvestTreeDelayCoroutine = parentBehaviour.StartCoroutine(TimerUtils.WaitAndPerform(SimulationSettings.NPCChoppingAnimationStartDelay, AttemptToHarvestTree));
     }
     else
     {
         TransitionToIdle();
     }
 }