void OnEnable() { #if UNITY_EDITOR // This can happen if you edit code while the editor is in Play mode. if (device == null) { InitDevice(); } #endif device.OnPause(false); }
void OnEnable() { device.OnPause(false); StartCoroutine("EndOfFrame"); }
void OnApplicationPause(bool pause) { Svr.SvrLog.LogFormat("GvrViewer OnApplicationPause,{0}", pause); device.OnPause(pause); }