コード例 #1
0
ファイル: FoxCollider.cs プロジェクト: pwonica/Fox-Village
 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?
     }
 }