Exemplo n.º 1
0
    protected override void Awake()
    {
        base.Awake();
        heroModel = GetComponentInParent <Ragnaros>();
        List <HeroSkill> skills = nextSkills.ToList();

        nextSkills = skills.OrderByDescending(skill => skill.Priority).ToArray();
    }
Exemplo n.º 2
0
 void OnTriggerEnter(Collider col)
 {
     if (col.gameObject.layer != gameObject.layer && col.tag != "weapon")
     {
         light.SetActive(false);
         spellAudio.SetActive(false);
         if (col.gameObject.layer == 9)
         {
             Ragnaros r = speller as Ragnaros;
             r.audioCtrler.PlaySound(dieInsect);
             col.GetComponent <State>().TakeSkillContent(damage);
         }
         StopEmission(FireBall);
         FireExplosion.SetActive(true);
     }
     // FireBall.SetActive(false);
 }