protected override void OnEnter( Actor actor, Blackboard local )
 {
     if ( m_subtree == null )
     {
         m_subtree = BehaviorCache.GetBehavior( m_id );
     }
 }
        public static void Register( string id, BehaviorTree behavior )
        {
            if ( cache.ContainsKey( id ) )
            {
                Debug.LogWarning( string.Format( "Trying to register duplicate behavior tree entry `{0}`", id ) );
                return;
            }

            cache[ id ] = behavior;
            Debug.Log( string.Format( "Registered behavior `{0}`", id ) );
        }
        public Constant( BehaviorTree owner ) : base( owner )
        {

        }
 public BehaviorTreeNode( BehaviorTree owner )
 {
     Owner    = owner;
     Children = new List<BehaviorTreeNode>();
 }
        public Repeater( BehaviorTree owner ) : base( owner )
        {

        }
        public Inverter( BehaviorTree owner ) : base( owner )
        {

        }
 public Subtree( BehaviorTree owner ) : base( owner )
 {
     
 }
        public Selector( BehaviorTree owner ) : base( owner )
        {

        }
        public ConsoleLog( BehaviorTree owner ) : base( owner )
        {

        }
        public Sequencer( BehaviorTree owner ) : base( owner )
        {

        }
Exemple #11
0
 public Repeater(BehaviorTree owner) : base(owner)
 {
 }
Exemple #12
0
 public Selector(BehaviorTree owner) : base(owner)
 {
 }
Exemple #13
0
 public MoveToObject(BehaviorTree owner) : base(owner)
 {
 }
Exemple #14
0
        public Delay( BehaviorTree owner ) : base( owner )
        {

        }