void OnCollisionEnter2D(Collision2D col) { if (col.gameObject.CompareTag("Enemy")) { Destroy(col.gameObject); player.getScore(200); } if (col.gameObject.CompareTag("Boss")) { boss.BossDamage(10); } }
void OnCollisionEnter2D(Collision2D col) { if (col.gameObject.CompareTag("Enemy")) { Destroy(col.gameObject); player.getScore(200); } if (col.gameObject.CompareTag("Boss")) { boss.BossDamage(10); } }