public void addController(AIController ai) { this.addObject(ai); }
public void removeController(AIController ai) { this.delObject(ai); }
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(); } }