public void ActivateSkill() { foreach (string st in ScriptName) { CommonSkill skill = transform.GetComponent(st) as CommonSkill; skill.Execute(); } }
public void ActivateSkill() { CommonSkill skill = transform.GetComponent(ScriptName) as CommonSkill; skill.Execute(); }