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