RayGun.Update C# (CSharp) Method

Update() public method

public Update ( ) : void
return void
    public override void Update()
    {
        if (ammo > 0)
        {
            if (time < coolDown)
                time += Time.deltaTime;
            if (time >= coolDown)
                canFire = true;
        }
    }