Exemple #1
0
 /// <summary>
 /// 打开支付方式选择窗口
 /// </summary>
 /// <param name="amount"></param>
 /// <param name="price"></param>
 private void OpenPaymentView(int amount, int price)
 {
     UIViewUtil.Instance.LoadWindowAsync(UIWindowType.Payment, (GameObject go) =>
     {
         m_UIPaymentView = go.GetComponent <UIPaymentView>();
         m_UIPaymentView.SetUI(amount, price);
     });
 }
Exemple #2
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            syncContextScheduler = TaskScheduler.FromCurrentSynchronizationContext();

            // Create a single instance of the transaction view
            TransactionView = new UIView();

            // Payment View
            PaymentView = new UIPaymentView();

            appStartupTimer          = new Timer();
            appStartupTimer.Interval = 500;
            appStartupTimer.Elapsed += new ElapsedEventHandler(Startup_Timer_Elapsed);
            appStartupTimer.Start();
        }