Assets.Scripts.Weapons.BaseGun.Fire C# (CSharp) Method

Fire() public method

public Fire ( ) : void
return void
        public void Fire()
        {
            if (CanFire())
            {
                GetComponent<Animator>().SetTrigger("Fire");

                if (IsMelee)
                {
                    MeleeAttack();
                }
                else
                {
                    RangedAttack();
                }
            }
        }