Ejemplo n.º 1
0
 private void OnTriggerEnter2D(Collider2D collision)
 {
     if (collision.CompareTag("Player_Bullet"))
     {
         Debug.Log("Collision to Bullet");
         enemyData.DecreaseHP(10);
         Debug.Log(gameObject.name + "of HP is : " + enemyData.HP);
     }
 }