Esempio n. 1
0
    public void Range2()
    {
        // Projectile Action
        SequenceAction sequence         = new SequenceAction();
        AnimeAction    projectileAction = CreateProjectileAction(hero.GetLaunchPosition(), target.transform.position);

        sequence.AddAction(projectileAction);
        sequence.AddAction(CreateTargetHitDamageAction());

        //
        AttackAction attackAction = CreateActorAttackAction(1, false, sequence);

        actionManager.RunAction(attackAction);
    }