void ShootLightning() { if (lightningAttack == null) { return; } lightningAttack.Fire(); attackCooldown = lightningAttack.coolDown; BeginCountdown(); }
//Handles telling the lightning attack to fire void ShootLightning() { //If there is no lightning attack, leave if (lightningAttack == null) { return; } //Fire lightning lightningAttack.Fire(); //Record the cooldown of the lightning attack attackCooldown = lightningAttack.Cooldown; //record how long to wait before we can attack again BeginCountdown(); }
//Handles telling the lightning attack to fire void ShootLightning() { //If there is no lightning attack, leave if (lightningAttack == null) { return; } //Trigger Audio FMODUnity.RuntimeManager.PlayOneShot(LightningAtkSFX, transform.position); //Fire lightning lightningAttack.Fire(); //Record the cooldown of the lightning attack attackCooldown = lightningAttack.Cooldown; //record how long to wait before we can attack again BeginCountdown(); }