Ejemplo n.º 1
0
    public void CastToEnemy(BaseSkill activeSkill, BaseCharacter target)
    {
        // Player Action
        EnemyManager.instance.activeCharacter.characterAction.Act(activeSkill.skillActionType);

        // Enemy Action
        //target.characterAction.Act(activeSkill.skillTargetActionType);

        activeSkill.Excute(this, target.gameObject);
    }
Ejemplo n.º 2
0
    public void CastToEnemies(BaseSkill activeSkill, List <BaseCharacter> targets)
    {
        // Player Action
        EnemyManager.instance.activeCharacter.characterAction.Act(activeSkill.skillActionType);

        // Enemy Action
        foreach (var t in targets)
        {
            //t.characterAction.Act(activeSkill.skillTargetActionType);
            activeSkill.Excute(this, t.gameObject);
        }
    }
Ejemplo n.º 3
0
    public virtual void CastToAlly(BaseSkill activeSkill, BaseCharacter target)
    {
        // Player Action
        PlayerManager.instance.activeCharacter.characterAction.Act(activeSkill.skillActionType);

        // Ally Action
        if (target != this)
        {
            target.characterAction.Act(activeSkill.skillTargetActionType);
        }

        activeSkill.Excute(this, target.gameObject);
    }
Ejemplo n.º 4
0
    public virtual void CastToAllies(BaseSkill activeSkill, List <BaseCharacter> targets)
    {
        // Player Action
        PlayerManager.instance.activeCharacter.characterAction.Act(activeSkill.skillActionType);

        // Enemy Action
        foreach (var t in targets)
        {
            if (t != this)
            {
                t.characterAction.Act(activeSkill.skillTargetActionType);
            }
            activeSkill.Excute(this, t.gameObject);
        }
    }
Ejemplo n.º 5
0
    public override void CastToSelf(BaseSkill activeSkill)
    {
        EnemyManager.instance.activeCharacter.characterAction.Act(activeSkill.skillActionType);

        activeSkill.Excute(this, gameObject);
    }
Ejemplo n.º 6
0
    public virtual void CastToSelf(BaseSkill activeSkill)
    {
        PlayerManager.instance.activeCharacter.characterAction.Act(activeSkill.skillActionType);

        activeSkill.Excute(this, gameObject);
    }