Пример #1
0
        public static ISpeechDetectionPlugin GetInstance()
        {
#if UNITY_WEBGL && !UNITY_EDITOR
            return(WebGLSpeechDetectionPlugin.GetInstance());
#else
            return(ProxySpeechDetectionPlugin.GetInstance());
#endif
        }
        /// <summary>
        /// Set the singleton instance
        /// </summary>
        private void Awake()
        {
#if !UNITY_WEBGL || UNITY_EDITOR
            _sInstance = this;
#else
            gameObject.SetActive(false);
#endif
        }