void OnTriggerEnter2D(Collider2D other) { if (other.tag == "coin") { uiManager.IncreaseYourScore(); Destroy(other.gameObject); } if (other.tag == "FireBall") { Damage(); } }