Example #1
0
    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");
 }
Example #3
0
 public void Activate(SpellBundle bundle)
 {
     activated = true;
     this.bundle = bundle;
 }
Example #4
0
 void Awake()
 {
     bundle = new SpellBundle();
     bundle.rootSpell = this;
 }