/// <summary> /// Awake is called when the script instance is being loaded. /// </summary> void Awake() { screenShotConfig = new ScreenShotConfig(); //mainCam = Common.GetMainCamera(); int v = Common.Bool2Int(false); PlayerPrefs.SetInt(AppVersion.STRING_KEY_APP_CHECK_FINISHED, v); InitDevice(); SetScreen(deviceInfoNow.width, deviceInfoNow.height); }
/// <summary> /// Awake is called when the script instance is being loaded. /// </summary> void Awake() { Debug.Log("UIScreenShotController Awake"); GameManager.main.isLoadGameScreenShot = true; screenShotConfig = new ScreenShotConfig(); //mainCam = Common.GetMainCamera(); LevelManager.main.ParsePlaceList(); LevelManager.main.ParseGuanka(); listDevice = ScreenDeviceInfo.main.listDevice; // InitDevice(); indexScreenShot = 0; indexDevice = 0; deviceInfoNow = listDevice[indexDevice]; SetScreen(deviceInfoNow.width, deviceInfoNow.height); }