// Constructor public MainPage() { var bridge = new UnityBridge(); UnityApp.SetBridge(bridge); InitializeComponent(); bridge.Control = DrawingSurfaceBackground; }
// Constructor public MainPage() { var bridge = new UnityBridge(); UnityApp.SetBridge(bridge); InitializeComponent(); bridge.Control = DrawingSurfaceBackground; WindowsGateway.OnClickPlay = OnClickPlay; }
// Constructor public MainPage() { var bridge = new UnityBridge(); UnityApp.SetBridge(bridge); InitializeComponent(); bridge.Control = DrawingSurfaceBackground; Interop.ShowInterstitialEvent += Interop_ShowInterstitialEvent; Interop.LoadInterstitialEvent += Interop_LoadInterstitialEvent; }
// Constructor public MainPage() { var bridge = new UnityBridge(); UnityApp.SetBridge(bridge); InitializeComponent(); bridge.Control = DrawingSurfaceBackground; _extendedSplashTimer = new DispatcherTimer(); _extendedSplashTimer.Interval = TimeSpan.FromMilliseconds(50); _extendedSplashTimer.Tick += ExtendedSplashTimer_Tick; _extendedSplashTimer.Start(); // ensure we listen to when unity tells us game is ready WindowsGateway.UnityLoaded = OnUnityLoaded; }
// Constructor public MainPage() { var bridge = new UnityBridge(); UnityApp.SetBridge(bridge); InitializeComponent(); bridge.Control = DrawingSurfaceBackground; // WP8Statics.WP8FunctionHandleSMSOpen += WP8Statics_OpenSMSHandle; WP8Statics.WP8FunctionHandleStopAds += WP8Statics_StopAds; WP8Statics.WP8FunctionHandleShowAds += WP8Statics_ShowAds; WP8Statics.WP8FunctionHandleRateApp += WP8Statics_RateApp; WP8Statics.WP8FunctionHandle2FbShared += WP8Statics_FbClickHandle; MainPage._mainPage = this; isShowAds = 1; if (isShowAds == 1) { VservAdControl VMB = VservAdControl.Instance; //full ads VMB.DisplayAd("7d2532e8", LayoutRoot); //n_m_hoang VMB.VservAdClosed += new EventHandler(VACCallback_OnVservAdClosing); VMB.VservAdError += new EventHandler(VACCallback_OnVservAdNetworkError); VMB.VservAdNoFill += new EventHandler(VACCallback_OnVservAdNoFill); } }