private void OnCollisionEnter2D(Collision2D collision) { if (collision.gameObject.tag == "Player") { gunController = collision.gameObject.GetComponent <GunController>(); gunController.AddMunition(GetRandomBullet()); PowerUpSpawnController.Spawn(); Destroy(gameObject); } }