private void Start() { Main.instance = this; AppConst.AppName = "mu_" + this.m_QSMY_ver; Baselayer.setDesignContentScale(1136, 640); AndroidPlotformSDK.ANDROID_PLOTFORM_SDK_CALL = new Action <string>(this.AndroidJavaMethodCall); AndroidPlotformSDK.ANDROID_PLOTFORM_SDK_INFO_CALL = new Action <string, string>(this.AndroidJavaMethodInfoCall); GameSdkMgr.init(); AnyPlotformSDK.InitSDK(); AppConst.DebugMode = this.debugMode; Screen.sleepTimeout = -1; AssetManagerImpl.UPDATE_DOWN_PATH = Application.persistentDataPath + "/OutAssets/v/" + this.m_QSMY_ver.ToString() + "/"; AssetManagerImpl.preparePath(AssetManagerImpl.UPDATE_DOWN_PATH); UnityEngine.Debug.Log(AssetManagerImpl.UPDATE_DOWN_PATH); DoAfterMgr.init(); if (GameObject.Find("Sequence") == null) { GameObject gameObject = Resources.Load("qsmy_uiRoot") as GameObject; if (gameObject != null) { GameObject gameObject2 = UnityEngine.Object.Instantiate <GameObject>(gameObject); } GameObject gameObject3 = Resources.Load("qsmy_EventSystem") as GameObject; if (gameObject3 != null) { GameObject gameObject4 = UnityEngine.Object.Instantiate <GameObject>(gameObject3); } } Globle.DebugMode = ((!this.debugMode) ? 1 : 2); if (this.CurPlatform != ENUM_QSMY_PLATFORM.QSPF_None) { Globle.DebugMode = 0; } Globle.QSMY_Platform_Index = this.CurPlatform; Globle.QSMY_SDK_Index = this.CurSDKPlatform; Globle.QSMY_CLIENT_VER = this.CurClientVer; Globle.WebUrl = AppConst.WebUrl; Globle.QSMY_game_ver = this.m_QSMY_ver.ToString(); Globle.m_nTestMonsterID = this.m_nTestMonsterID; Globle.YR_srvlists__platform = this.m_debug_SvrList_Platform; Globle.YR_srvlists__platuid = this.m_debug_SvrList_Platuid; if (this.CurPlatform > ENUM_QSMY_PLATFORM.QSPF_None) { if (this.m_sdkLogined) { this.InitGameMangager(); } else { base.CancelInvoke("invoke_initGame"); base.InvokeRepeating("invoke_initGame", 0f, 0.3f); } } else { this.InitGameMangager(); } }
private void Awake() { this.uiLayer = base.transform.GetComponentInParent <Baselayer>(); }
void Awake() { uiLayer = transform.GetComponentInParent<Baselayer>(); }