Example #1
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.tag == "food")
     {
         print("Fox ate food");
         parentFox.EatFood(other.gameObject.GetComponent <Food>().pointsValue);
         Destroy(other.gameObject);
         //exit from chase
         //todo where does it actually exit from the chase?
     }
 }