예제 #1
0
 private static IUnityAnalyticsSession GetSingleton()
 {
     if (s_Implementation == null)
     {
         Logger.loggerInstance = new UnityLogger();
         IPlatformWrapper platformWrapper = PlatformWrapper.platform;
                         #if NETFX_CORE
         IFileSystem fileSystem = new WindowsFileSystem();
                         #elif UNITY_WEBPLAYER || UNITY_WEBGL
         IFileSystem fileSystem = new VirtualFileSystem();
                         #else
         IFileSystem fileSystem = new FileSystem();
                         #endif
         ICoroutineManager coroutineManager = new UnityCoroutineManager();
         s_Implementation = new SessionImpl(platformWrapper, coroutineManager, fileSystem);
         GameObserver.CreateComponent(platformWrapper, s_Implementation);
     }
     return(s_Implementation);
 }
예제 #2
0
		private static IUnityAnalyticsSession GetSingleton()
		{
			if (s_Implementation == null) {
				Logger.loggerInstance = new UnityLogger();
				IPlatformWrapper platformWrapper = PlatformWrapper.platform;
				#if NETFX_CORE
				IFileSystem fileSystem = new WindowsFileSystem();
				#elif UNITY_WEBPLAYER || UNITY_WEBGL
				IFileSystem fileSystem = new VirtualFileSystem();
				#else
				IFileSystem fileSystem = new FileSystem();
				#endif
				ICoroutineManager coroutineManager = new UnityCoroutineManager();
				s_Implementation = new SessionImpl(platformWrapper, coroutineManager, fileSystem);
				GameObserver.CreateComponent(platformWrapper, s_Implementation);
			}
			return s_Implementation;
		}