コード例 #1
0
 void OnTriggerExit(Collider other)
 {
     if (other.tag == "Hostile")
     {
         score.AddMiss();
     }
     Destroy(other.gameObject);
     Debug.Log("object destroyed", this);
 }