Ejemplo n.º 1
0
        public static AIBehavior alloc(IAIBehaviorProvider p_IAIBehaviorProvider)
        {
            AIBehavior l_instance = new AIBehavior();

            l_instance.IAIBehaviorProvider = p_IAIBehaviorProvider;
            return(l_instance);
        }
Ejemplo n.º 2
0
        public override void Initialize(Entity p_entity, RuntimeObjectRootComponent p_runtimeObjectRootComponent)
        {
            AIBehavior l_aiBehavior = AIBehavior.alloc(IAIBehaviorProvider);

            EntityComponent.add_component <AIBehavior>(p_entity, l_aiBehavior);
        }