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

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