void Update() { if (currShootingCooldown > 0) { currShootingCooldown -= Time.deltaTime; } else { enemyMaster.ShootBolt(boltOrigin); SetCooldown(); } }