public Coroutine(IEnumerator routine, Behavior parent)
        {
            _routine = routine;
            _parent = parent;
            _started = false;

            if ( _routine != null )
            {
                _running = true;
            }
            else
            {
                _running = false;
            }
        }
Example #2
0
 public void RemoveBehavior(Behavior behavior)
 {
     behaviors.Remove(behavior);
 }
 public void RemoveBehavior( Behavior behavior )
 {
     behaviors.Remove( behavior );
 }
Example #4
0
 public void AddBehavior(Behavior behavior)
 {
     behaviors.Add(behavior);
 }
 public void AddBehavior( Behavior behavior )
 {
     behaviors.Add( behavior );
 }