Ejemplo n.º 1
0
        /// <summary>
        /// Will return true if the environment supports the WebRTCNetwork plugin
        /// (needs to run in Chrome or Firefox + the javascript file needs to be loaded in the html page!)
        ///
        /// </summary>
        /// <returns></returns>
        public static bool IsAvailable()
        {
#if UNITY_WEBGL
            try
            {
                return(CAPI.Unity_WebRtcNetwork_IsAvailable());
            }catch (EntryPointNotFoundException)
            {
                //not available at all
            }
#endif
            return(false);
        }