Exemplo n.º 1
0
    private void Tornado()
    {
        Debug.Log("Tornado");
        animator.SetTrigger("Tornado");
        GameObject       clone = Instantiate(tornado, skillPosition, Quaternion.identity);
        RaidMonsterSpell spell = clone.GetComponent <RaidMonsterSpell>();

        spell.Damage = 200;
        spell.AttackActiveDuration = 4;
        spell.AttackPreDelay       = 0.5f;
    }
Exemplo n.º 2
0
    private void Wield()
    {
        Debug.Log("Wield");
        animator.SetTrigger("Wield");
        GameObject clone = Instantiate(wield, this.transform.position, this.transform.rotation);

        RaidMonsterSpell spell = clone.GetComponent <RaidMonsterSpell>();

        spell.Damage = 30;
        spell.AttackActiveDuration = 1;
        spell.AttackPreDelay       = 0.3f;
    }
Exemplo n.º 3
0
    private void ThunderStroke()
    {
        Debug.Log("ThunderStroke");
        animator.SetTrigger("ThunderStroke");
        GameObject clone = Instantiate(thunderStroke, skillPosition, Quaternion.identity);

        RaidMonsterSpell spell = clone.GetComponent <RaidMonsterSpell>();

        spell.Damage = 100;
        spell.AttackActiveDuration = 1.5f;
        spell.AttackPreDelay       = 0.3f;
    }
Exemplo n.º 4
0
    private void Pierce()
    {
        Debug.Log("Pierce");
        animator.SetTrigger("Pierce");
        GameObject clone = Instantiate(pierce, this.transform.position, this.transform.rotation);

        clone.transform.LookAt(target);

        RaidMonsterSpell spell = clone.GetComponent <RaidMonsterSpell>();

        spell.Damage = 50;
        spell.AttackActiveDuration = 1.2f;
        spell.AttackPreDelay       = 0.2f;
    }