示例#1
0
  void Start() {
#if !UNITY_ANDROID || UNITY_EDITOR
    if (m_launchVrHomeButton == null) {
      return;
    }
    m_launchVrHomeButton.SetActive(false);
#else
    GvrDaydreamApi.CreateAsync((success) => {
      if (!success) {
        // Unexpected. See GvrDaydreamApi log messages for details.
        Debug.LogError("GvrDaydreamApi.CreateAsync() failed");
      }
    });
#endif  // !UNITY_ANDROID || UNITY_EDITOR
  }
示例#2
0
    void Start()
    {
        Input.backButtonLeavesApp = true;
        startingPosition          = transform.localPosition;

                #if !UNITY_ANDROID || UNITY_EDITOR
        if (m_launchVrHomeButton == null)
        {
            return;
        }
        m_launchVrHomeButton.SetActive(false);
                #else
        GvrDaydreamApi.CreateAsync((success) => {
            if (!success)
            {
                // Unexpected. See GvrDaydreamApi log messages for details.
                Debug.LogError("GvrDaydreamApi.CreateAsync() failed");
            }
        });
                #endif  // !UNITY_ANDROID || UNITY_EDITOR
    }