예제 #1
0
 private void OnTriggerStay(Collider other)
 {
     if (!other.isTrigger)
     {
         ap.Dodamage(other.gameObject);
     }
 }
예제 #2
0
파일: FireBall.cs 프로젝트: Julen18/TFM_UOC
    private void OnCollisionEnter(Collision collision)
    {
        ap.Dodamage(collision.gameObject, damange, true);

        Destroy(gameObject);
    }