public override bool RunAttack() { if (!justFired) { justFired = true; cooldownTime = Time.time; SingleProjectileAttack.LaunchProjectile2D(prefab_projectile, launchPosition.position, heightBased); return(true); } return(false); }
public override bool RunAttack() { if (!justFired) { justFired = true; cooldownTime = Time.time; SingleProjectileAttack.LaunchProjectile2D(prefab_projectile, launchPosition.position + Vector3.left * 1.2f); SingleProjectileAttack.LaunchProjectile2D(prefab_projectile, launchPosition.position + Vector3.right * 1.2f); SingleProjectileAttack.LaunchProjectile2D(prefab_projectile, launchPosition.position); return(true); } return(false); }