コード例 #1
0
        private void BindHotfixConditionals(BehaviorTreeTasks tasks)
        {
            foreach (var hotfixConditional in tasks.hotfixConditionals)
            {
                var component = BehaviorTreeComponentFactory.Create(GetParent <Entity>(), hotfixConditional);

                if (component != null)
                {
                    behaviorTreeConditionalComponents.Add(hotfixConditional, component);
                }
            }
        }
コード例 #2
0
        private void BindHotfixDecorators(BehaviorTreeTasks tasks)
        {
            foreach (var hotfixDecorator in tasks.hotfixDecorators)
            {
                var component = BehaviorTreeComponentFactory.Create(GetParent <Entity>(), hotfixDecorator);

                if (component != null)
                {
                    behaviorTreeDecoratorComponents.Add(hotfixDecorator, component);
                }
            }
        }
コード例 #3
0
        private void BindHotfixActions(BehaviorTreeTasks tasks)
        {
            foreach (var hotfixAction in tasks.hotfixActions)
            {
                var component = BehaviorTreeComponentFactory.Create(GetParent <Entity>(), hotfixAction);

                if (component != null)
                {
                    behaviorTreeActionComponents.Add(hotfixAction, component);
                }
            }
        }