public void Unbind() { m_taskAction = null; m_boundMember = null; m_boundObject = null; this.m_boundState = BoundState.Unbound; }
public void Bind(object[] objects) { _boundState = BoundState.Bound; hasThrownExceptionOnTick = false; m_boundObjects = objects; if (main != null) { BTRuntimeBuilder.Bind(this, objects); var tasks = this.tasks; foreach (var t in tasks) { if (t.boundState != BoundState.Bound) { _boundState = BoundState.Failed; break; } } Reset(); } else { _boundState = BoundState.Failed; } }
public void Unbind() { if (main != null) { var tasks = this.tasks; foreach (var t in tasks) { t.Unbind(); } } _boundState = BoundState.Unbound; }