예제 #1
0
    public override bool RunAttack()
    {
        if (!justFired)
        {
            justFired    = true;
            cooldownTime = Time.time;
            SingleProjectileAttack.LaunchProjectile2D(prefab_projectile, launchPosition.position, heightBased);
            return(true);
        }

        return(false);
    }
예제 #2
0
    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);
    }