RayGun.Use C# (CSharp) Method

Use() public method

public Use ( ) : void
return void
    public override void Use()
    {
        if(canFire == true)
        {
            //play shotSound
            Instantiate (projectile, transform.position, transform.rotation);
            canFire = false;
            time = 0.0f;
            ammo--;
        }
    }