private void OnTriggerEnter2D(Collider2D collision) { if (collision.tag == "TopWall") { Destroy(gameObject); powerUps.DeactivateMissile(); } }
private void OnTriggerEnter2D(Collider2D collision) { if (collision.tag == "TopWall") { Destroy(gameObject); powerUps.DeactivateMissile(); } }