private void Awake() { Application.targetFrameRate = CardboardUtility.GetTargetFramerate(); if (dontDestroyAndSingleton) { if (_instance == null) { DontDestroyOnLoad(gameObject); _instance = this; } else if (_instance != this) { Destroy(gameObject); return; } } SetupRenderTexture(); CardboardManager.InitCardboard(); CardboardManager.SetVRViewEnable(defaultEnableVRView); }
private void Awake() { #if UNITY_IOS Application.targetFrameRate = 60; #endif if (dontDestroyAndSingleton) { if (instance == null) { DontDestroyOnLoad(gameObject); instance = this; } else if (instance != this) { Destroy(gameObject); return; } } SetupRenderTexture(); CardboardManager.InitCardboard(); CardboardManager.SetVRViewEnable(defaultEnableVRView); }