Esempio n. 1
0
 public void Enter()
 {
     water.Eaten(consumingRate, animal);
     animal.RecordAgentState(ref agent);
     agent.SetDestination(water.gameObject.transform.position);
     // Debug.Log(animal.name + " start eating");
     animal.SetBusy(BaseAnimal.BusyType.Ingesting);
 }
 private void Grabbed()
 {
     // Debug.Log("Grabbing");
     transform.parent = GrabbingHandRef.transform;
     if (animalComponentRef != null && !grabbed)
     {
         animalComponentRef.SetBusy(BaseAnimal.BusyType.Grabbed);
     }
     grabbed = true;
 }