public void Awake() { Log.Debug("开始加载网络管理行为树"); fileManager = new EXFileManager(); behaviac.Workspace.Instance.FilePath = "BT"; behaviac.Workspace.Instance.FileFormat = behaviac.Workspace.EFileFormat.EFF_xml; behaviac.Workspace.Instance.IsExecAgents = false; //behaviac.Config.IsLogging = true; //behaviac.Config.SocketPort = 9931; behaviac.Config.IsSocketing = false; Log.Debug("开始初始化行为树"); connectionManagerBT = new ETHotfix.ConnectionManager(); bool bRet = connectionManagerBT.btload("ConnectionManager"); if (bRet) { connectionManagerBT.btsetcurrent("ConnectionManager"); } else { Log.Debug("加载行为树失败"); } }
void Cleanup() { connectionManagerBT = null; }