Exemple #1
0
    private void OnCollisionEnter(Collision collision)
    {
        TankShooting tank = collision.collider.GetComponent <TankShooting>();

        if (tank != null)
        {
            tank.ActivatePowerUp();
        }
    }