/// <summary> /// Creates a popup dialog that shows when volume changes. /// </summary> private static void InitVolumeController() { if (volumeController == null) { //Debug.Log("Creating volume controller..."); // Create the volume control popup GameObject go = GameObject.Instantiate(Resources.Load("OVRVolumeController")) as GameObject; if (go != null) { volumeController = go.GetComponent <OVRVolumeControl>(); } else { Debug.LogError("Unable to instantiate volume controller"); } } }
/// <summary> /// Creates a popup dialog that shows when volume changes. /// </summary> private static void InitVolumeController() { if (volumeController == null) { Debug.Log("Creating volume controller..."); // Create the volume control popup GameObject go = GameObject.Instantiate(Resources.Load("OVRVolumeController")) as GameObject; if (go != null) { volumeController = go.GetComponent<OVRVolumeControl>(); } else { Debug.LogError("Unable to instantiate volume controller"); } } }