void OnTriggerEnter2D(Collider2D other) { if (other.tag == "Player") { powerUp.DoubleJumpOn(); Instantiate(pickUpParticle, other.transform.position, other.transform.rotation); ScoreManager.AddPoints(score); Destroy(gameObject); } }
void OnTriggerEnter2D(Collider2D other) { if (other.tag == "Player") { powerUp.DoubleJumpOn(); Instantiate(pickUpParticle, other.transform.position, other.transform.rotation); ScoreManager.AddPoints(score); Destroy(gameObject); } }