public override void Fire(Vec3 position) //, Vec3 fireDirection) { // Do not allow to fire weapon while preparing for next shot. if (CoolDownTime > 0) { return; } // Creating an instance of the ammo will automatically fire the ammo DefaultAmmo.Create(position, Speed, false, _shot, _shotSmoke); AudioManager.PlayTrigger("laser_player"); }
public override void Fire(Vec3 position) { // Do not allow to fire weapon while preparing for next shot. if (CoolDownTime > 0) { return; } AudioManager.PlayTrigger("laser_charged"); // Creating an instance of the ammo will automatically fire the ammo DefaultAmmo.Create(position, Speed, true, _shot, _shotSmoke); // Start cool down timer again (if necessary). CoolDownTime = 1.5f; }