Beispiel #1
0
 private static IUnityAnalyticsSession GetSingleton()
 {
     if (s_Implementation == null)
     {
         Logger.loggerInstance = new UnityLogger();
         IPlatformWrapper  platformWrapper  = PlatformWrapper.platform;
         IFileSystem       fileSystem       = new FileSystem();
         ICoroutineManager coroutineManager = new UnityCoroutineManager();
         s_Implementation = new SessionImpl(platformWrapper, coroutineManager, fileSystem);
         GameObserver.CreateComponent(platformWrapper, s_Implementation);
     }
     return(s_Implementation);
 }
Beispiel #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);
 }
		private static IUnityAnalyticsSession GetSingleton()
		{
			if (s_Implementation == null) {
				Logger.loggerInstance = new UnityLogger();
				IPlatformWrapper platformWrapper = PlatformWrapper.platform;
				IFileSystem fileSystem = new FileSystem();
				ICoroutineManager coroutineManager = new UnityCoroutineManager();
				s_Implementation = new SessionImpl(platformWrapper, coroutineManager, fileSystem);
				GameObserver.CreateComponent(platformWrapper, s_Implementation);
			}
			return s_Implementation;
		}
Beispiel #4
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;
		}