예제 #1
0
//		internal class InnerBacktoryMatchUnityApi : BacktoryMatchUnityApi {
//			internal InnerBacktoryMatchUnityApi(String address, String matchId) : base(address, matchId) {
//			}
//
//			override
//			internal String GetConnectivityId() {
//				return X_BACKTORY_CONNECTIVITY_ID;
//			}
//		}

        public static void Initialize(String xBacktoryConnectivityId /*, Context baseContext*/)
        {
            // Alireza
            //if(UnityThreadHelper.Dispatcher == null) {
            //	throw new Exception("Initialization should run on main thread");
            //}
            if (backtoryApi == null)
            {
                backtoryApi = new BacktoryRealtimeUnityApi(xBacktoryConnectivityId /*, baseContext*/);
            }
        }
예제 #2
0
 internal InnerBacktoryConnectivityUnityApi(UnityPlatform unityPlatform, BacktoryRealtimeUnityApi unityApi) : base(unityPlatform)
 {
     outClass = unityApi;
 }