public static void Startup(String appId)
 {
     if (!isStartupDone)
     {
         isStartupDone = true;
         AdConfigurer.SetAppId(appId);
         AdConfigurer.Startup(new PlatformPCWindowsImpl());
         PlatformObjectsFactoryHolder.SetFactory(new PlatformObjectsFactoryUnity());
     }
 }
Пример #2
0
        public static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
            AdConfigurer.Startup(new PlatformImpl());
            PlatformVariableTest.Test1();

            /*AdListenerImplementation adListenerImplementation = new AdListenerImplementation();
             *          ImageTextureAd adClient = new ImageTextureAd (adListenerImplementation, "asdfadfd");
             *          adClient.LoadAds (2);
             * //AnalyticsWebManagerTest.Test1();*/
            PlatformObjectsFactoryHolder.SetFactory(new PlatformObjectsFactoryUnity());
            AdListenerImplementation adListener = new AdListenerImplementation();
            ImageTextureAdUnit       adUnit     = new ImageTextureAdUnit(adListener, "adsfd");

            adUnit.LoadAds(2);
            SystemInfoTest.TestHardwareInfo();
            //AnalyticsWebManagerTest.Test1();
            AdConfigurer.Shutdown();
            Console.ReadLine();
        }