예제 #1
0
파일: Drug.cs 프로젝트: Xiguyiwan/-Alita
 void OnTriggerEnter(Collider coll)
 {
     if (coll.gameObject.CompareTag("sword"))
     {
         print("collision " + coll);
         _playerHealth.AddHealth(Health);
         Destroy(this.gameObject);
     }
 }