//转的特效 public void ShowSkill3() { PlayerEffecrt pe; if (effectDict.TryGetValue("CrowstormEffect", out pe)) { ArrayList array = GetEnemyFront(AttackRange.Around); PlayerEffecrt effectGO = Instantiate(pe) as PlayerEffecrt; effectGO.gameObject.transform.position = transform.position; SoundManager.instance.Play("ice_attack"); } }
//鸟的特效 public void SelfToTarget(string effectName) { PlayerEffecrt pe; if (effectDict.TryGetValue(effectName, out pe)) { ArrayList array = GetEnemyFront(AttackRange.Around); foreach (GameObject go in array) { if (go.activeInHierarchy == false) { continue; } SoundManager.instance.Play("bird"); PlayerEffecrt effectGO = Instantiate(pe) as PlayerEffecrt; effectGO.gameObject.transform.position = transform.position + Vector3.up; effectGO.gameObject.GetComponent <EffectSettings>().Target = go; } } }