Exemplo n.º 1
0
        void OnTriggerEnter(Collider other)
        {
            EnemyStates eStates = other.GetComponentInChildren <EnemyStates>();

            if (eStates != null)
            {
                eStates.DoDamageSpell();
                SpellEffectsManager.singleton.UseSpellEffect("onFire", null, eStates);
            }
        }
Exemplo n.º 2
0
        void OnTriggerEnter(Collider other)
        {
            EnemyStates eStates = other.GetComponentInParent <EnemyStates>();

            if (eStates != null)
            {
                eStates.DoDamageSpell();
                SpellEffectsManager.singleton.UseSpellEffect("onFire", null, eStates);
            }

            GameObject g0 = Instantiate(explosionPrefab, transform.position, transform.rotation) as GameObject;

            Destroy(this.gameObject);
        }