Пример #1
0
 public void Unbind()
 {
     m_taskAction      = null;
     m_boundMember     = null;
     m_boundObject     = null;
     this.m_boundState = BoundState.Unbound;
 }
Пример #2
0
        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;
            }
        }
Пример #3
0
 public void Unbind()
 {
     if (main != null)
     {
         var tasks = this.tasks;
         foreach (var t in tasks)
         {
             t.Unbind();
         }
     }
     _boundState = BoundState.Unbound;
 }