Esempio n. 1
0
  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);
  }
Esempio n. 2
0
 void OnEnable()
 {
     device.OnPause(false);
     StartCoroutine("EndOfFrame");
 }
 void OnApplicationPause(bool pause)
 {
     Svr.SvrLog.LogFormat("GvrViewer OnApplicationPause,{0}", pause);
     device.OnPause(pause);
 }