public void CreateAutoSearchPointInfo(Tab_AutoSearch autoSearchInfo) { SetLabelText(autoSearchInfo.TargetJob, autoSearchInfo.TargetName, autoSearchInfo.Color); m_StartSceneId = autoSearchInfo.Id; m_EndSceneId = autoSearchInfo.DstSceneID; m_fPosX = autoSearchInfo.X; m_fPosZ = autoSearchInfo.Z; }
void OnLoadTransmitPoint(GameObject resObj, object param) { m_EnemyList.Clear(); m_TransmitList.Clear(); if (null == resObj) { LogModule.ErrorLog("loas transmit point error"); return; } List <Tab_AutoSearch> tableList = TableManager.GetAutoSearchByID(m_curSceneID); if (null != tableList) { for (int nIndex = 0; nIndex < tableList.Count; ++nIndex) { Tab_AutoSearch autoSearchInfo = tableList[nIndex]; if (null != autoSearchInfo) { if (autoSearchInfo.Type == (int)AUTO_SEARCH_TYPE.AUTO_SEARCH_ENEMY) { m_EnemyList.Add(new Vector3(autoSearchInfo.X, 0f, autoSearchInfo.Z)); } else if (autoSearchInfo.Type == (int)AUTO_SEARCH_TYPE.AUTO_SEARCH_TRANSMIT) { m_TransmitList.Add(new Vector3(autoSearchInfo.X, 0f, autoSearchInfo.Z)); } GameObject newTransmitPoint = Utils.BindObjToParent(resObj, m_TransmitPointGrid, "TransmitPoint" + nIndex.ToString()); if (null != newTransmitPoint && null != newTransmitPoint.GetComponent <AutoSearchPointLogic>()) { newTransmitPoint.GetComponent <AutoSearchPointLogic>().CreateAutoSearchPointInfo(autoSearchInfo); } } } } m_TransmitPointGrid.GetComponent <UIGrid>().Reposition(); m_bLoadingItem = false; ShowEnemy(); ShowTransmit(); }