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 }
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 }