public Behavior() { coroutines = new List <Coroutine>(); if (HasMethod("Awake")) { Invoke("Awake"); } BehaviorManager.SharedInstance().AddBehavior(this); this.started = false; this.enabled = true; }
public void Destroy() { //Remove from the behavior manager effectively killing this behavior BehaviorManager.SharedInstance().RemoveBehavior(this); }