コード例 #1
0
 void OnTriggerEnter(Collider other)
 {
     if (other.tag == "Player")
     {
         RPG.KillPlayer(message);             // kill them
     }
     if (other.tag == "Enemy")
     {
         Destroy(other.gameObject);  // kill it
     }
 }