Exemple #1
0
        /// <summary>
        /// Retrieves an Ortc Server url from the Ortc Balancer
        /// </summary>
        /// <returns></returns>
        public UnityTask <string> GetServerUrl()
        {
            if (!String.IsNullOrEmpty(Url) && IsCluster)
            {
                return(UnityTask.RunCoroutine <string>(GetServerFromBalancerAsync));
            }

            return(UnityTask.SuccessTask(Url));
        }