Esempio n. 1
0
        public static void SetEnabled(bool toggle)
        {
#if UNITY_EDITOR
            if (toggle)
            {
                EditorPrefs.SetInt(KEY_SPEECH_DETECTION_ENABLED, 1);
            }
            else
            {
                EditorPrefs.SetInt(KEY_SPEECH_DETECTION_ENABLED, 0);
                if (null != _sInstance)
                {
                    _sInstance.StopEditorUpdates();
                    _sInstance.CleanUp();
                }
            }
#endif
        }