コード例 #1
0
ファイル: Enemy.cs プロジェクト: MattRDev107/The-Unknow-Game
 void OnCollisionEnter(Collision collision)
 {
     if (collision.gameObject.CompareTag("Projectile"))
     {
         healthSystem.Damge(damge);
         Debug.Log("hit");
         Debug.Log("Health: " + healthSystem.GetHealth());
     }
 }