void OnTriggerEnter2D(Collider2D other) { if (other.tag == "Player") { hud.IncreaseScore(10); hud.IncreaseGauge(2); Destroy(this.gameObject); } }
void OnTriggerEnter2D(Collider2D other) { if (other.tag == "Player") { hud.IncreaseScore(10); hud.IncreaseGauge(2); Destroy(this.gameObject); } }