Example #1
0
    public void Awake()
    {
        singleton = this;

        //Force Mic Use to prompt permissions on android
        Microphone.Start("", false, 1, 44100);
    }
Example #2
0
        private void Awake()
        {
            singleton = this;
            platform  = GetComponent <AsymmetricPlayerPlatform>();

            //Check if we have a VR device
            if (XRSettings.isDeviceActive)
            {
                SetupVR();

                //If VR and android, make sure to disable asymmetric rendering stuff.
                if (Application.platform == RuntimePlatform.Android)
                {
                    desktopCamera.SetActive(false);
                }
            }
            else
            {
                SetupPC();
            }
        }