Inheritance: MonoBehaviour
Exemplo n.º 1
0
 /// <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");
         }
     }
 }
Exemplo n.º 2
0
 /// <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");
         }
     }
 }