Exemplo n.º 1
0
        void HandleToggleSet(bool val)
        {
            MixCast.SetActive(val);

            //Open MixCast webpage if the user doesn't have MixCast calibrated
            if (val && MixCast.Settings.cameras.Count == 0)
            {
                Application.OpenURL(SETUP_URL);
            }
        }
        void HandleToggleSet(bool val)
        {
            MixCast.SetActive(val);

            //Open MixCast webpage if the user doesn't have MixCast calibrated
            if (val && MixCast.Settings.cameras.Count == 0)
            {
                Application.OpenURL(SETUP_URL);
            }

            bool triggerDebug = val && debugKeys.Exists(k => Input.GetKey(k));

            debugObjects.ForEach(g => g.SetActive(triggerDebug));
        }
Exemplo n.º 3
0
        void RefreshStatus()
        {
            bool isDataConfigured = MixCast.Settings.cameras.Count > 0;
            bool isServiceRunning = MixCastRegistry.IsServiceRunning();

            bool shouldMixCastBeActive = isDataConfigured && isServiceRunning;

            if (shouldMixCastBeActive && !MixCast.Active)
            {
                MixCast.SetActive(true);
            }
            else if (!shouldMixCastBeActive && MixCast.Active)
            {
                MixCast.SetActive(false);
            }
        }