public void LoadAllTable() { ResourcesManagerMoudle rmm = GameMainEntry.GetModule <ResourcesManagerMoudle>(); foreach (IDataTable idt in m_tbm.Dict_Table.Values) { var txt_asset = rmm.LoadAssetById <TextAsset>(idt.AssetId); if (txt_asset == null) { DebugHandler.LogError(idt.AssetId); } if (!idt.IsLoad) { JArray jay = (JArray)JsonConvert.DeserializeObject(txt_asset.text); if (jay == null) { DebugHandler.LogError("Null jay"); } if (!idt.ParseTable(jay)) { DebugHandler.LogError("Null Parse jay" + txt_asset.text); } } } }
private void Awake() { m_tbm = GameMainEntry.GetModule <TableManager>(); if (m_tbm == null) { throw new GameFrameworkException("TableManager NULL "); } }
public void Init() { if (EUIManagerState == EUIManagerState.e_Init) { EUIManagerState = EUIManagerState.e_Idle; m_UIManagerGo = gameObject; m_UILayerManagerCom = this.GetComponent <UILayerManagerComponent>(); m_UIManager = GameMainEntry.GetModule <UIManager>(); m_EventManager = new EventManager(); SetUIFactor(); } }
private void Awake() { m_SceneManager = GameMainEntry.GetModule <SceneManager>(); }
private void Awake() { lockstep_gm = GameMainEntry.GetModule <LockstepGameManager>(); lockreplay_gm = new LockstepReplayManager(); }