Shoot() public method

public Shoot ( ) : void
return void
Esempio n. 1
0
    public void Shoot(Vector3 position, Vector3 fireDir)
    {
        if (currentWeapon == null)
        {
            return;
        }

        if (currentWeapon.CanFire)
        {
            // Shoot one bullet
            currentWeapon.Shoot(position, fireDir);
        }
    }
 public void AttackGun()
 {
     gun.Shoot();
     AudioSource.PlayClipAtPoint(gunClip, transform.position, 1f);
     gun.attack = attackGun;
 }