private void OnCollisionEnter(Collision collision) { TankShooting tank = collision.collider.GetComponent <TankShooting>(); if (tank != null) { tank.ActivatePowerUp(); } }