コード例 #1
0
 public void addController(AIController ai)
 {
     this.addObject(ai);
 }
コード例 #2
0
 public void removeController(AIController ai)
 {
     this.delObject(ai);
 }
コード例 #3
0
ファイル: BeingEntity.cs プロジェクト: zhutaorun/unitygame
        protected void initAi(BTID id)
        {
            //if (m_behaviorTree == null && m_skinAniModel.rootGo != null)
            {
                // 生成行为树
                BehaviorTree behaviorTree = Ctx.m_instance.m_aiSystem.behaviorTreeMgr.getBT(id) as BehaviorTree;
                m_behaviorTree = behaviorTree;
                // 生成 ai 控制器
                if (m_aiController == null)
                {
                    m_aiController = new AIController();
                    m_aiController.initControl(m_skinAniModel);
                }

                //m_aiController.vehicle.sceneGo = m_skinAniModel.rootGo;
                // 初始化 Steerings 参数信息
                initSteerings();
            }
        }