private void Load() { if (!this.LoadingTrigger) { if (this.LoadTriggerBuffer.Count <= 0) { return; } EventTriggerMapManager.LoadingTriggerInfo loadingTriggerInfo = this.LoadTriggerBuffer[0]; if (loadingTriggerInfo == null) { return; } MapTriggerInfo mapInfo = loadingTriggerInfo.m_MapInfo; this.m_CurrentMapIdx = loadingTriggerInfo.m_MapIdx; this.AddActive(mapInfo); if (!mapInfo.Loaded && NrTSingleton <NrEventTriggerInfoManager> .Instance.IsVaildMapInfo(this.m_CurrentMapIdx)) { string path = string.Format("EventTrigger_MAP_{0}", this.m_CurrentMapIdx.ToString()); EventTriggerStageLoader.SetLoadingInfo(path, new EventTriggerStageLoader.LoadComplete(this.LoadTrigger)); this.LoadingSection = loadingTriggerInfo; this.LoadingTrigger = true; } else { this.LoadNext(loadingTriggerInfo); } } }
public void ReloadMapTrigger() { UnityEngine.Debug.Log("ReloadMapTrigger : " + this.isActive); EventTriggerMapManager.Instance.Claer(); this.m_bReload = true; this.LoadMapTrigger(NrTSingleton <MapManager> .Instance.CurrentMapIndex); base.StartCoroutine(EventTriggerStageLoader.LoadEventTrigger()); }
public static void ReadXML(IDownloadedItem wItem, object kParmObj) { GameObject[] goTriggers = null; EventTriggerXMLMaker eventTriggerXMLMaker = new EventTriggerXMLMaker(); if (wItem.canAccessString) { goTriggers = eventTriggerXMLMaker.ReadXML(wItem.safeString); } else if (wItem.canAccessAssetBundle) { goTriggers = eventTriggerXMLMaker.ReadXML(wItem, null); } if (EventTriggerStageLoader._LoadComplete != null) { EventTriggerStageLoader._LoadComplete(goTriggers); } }