public void Activate(SpellBundle bundle) { SpellSpecial toActivate; for(int i=0; i<activateOnTrigger.Length; ++i) { toActivate = gameObject.GetComponent(activateOnTrigger[i]) as SpellSpecial; if(toActivate != null) { toActivate.Activate(bundle); } else { Debug.LogError("Missing Component: " + activateOnTrigger[i] + " On object: " + transform.root.name); } } Destroy(this); }
public void Activate(SpellBundle bundle) { this.bundle = bundle; StartCoroutine("ColliderActivator"); }
public void Activate(SpellBundle bundle) { activated = true; this.bundle = bundle; }
void Awake() { bundle = new SpellBundle(); bundle.rootSpell = this; }