예제 #1
0
        public async Task <bool> ValidateAsync()
        {
#if UNITY_EDITOR || UNITY_WEBGL
            return(await webSocketProxy.Open(context));
#else
            return(await Task.FromResult(true));
#endif
        }
예제 #2
0
        public async Task <bool> ValidateAsync()
        {
#if UNITY_EDITOR || UNITY_WEBGL
            if (!IsWebSocketOpened)
            {
                await webSocketProxy.Open(context);

                IsWebSocketOpened = true;
            }
#endif
            return(await Task.FromResult(true));
        }