Exemple #1
0
 public void Init(PayInfo info)
 {
     if (info == null)
     {
         return;
     }
     this.payInfo = info;
     this.icon.spriteName = this.payInfo.Icon;
     this.itemName.text = this.payInfo.Name;
     this.mCurrency.enabled = true;
     this.price.text = this.payInfo.Price.ToString();
     this.Refresh();
 }
Exemple #2
0
 public static GameMessageBox ShowPayMessageBox(PayInfo payInfo)
 {
     float price = payInfo.Price;
     string @string = Singleton<StringManager>.Instance.GetString("PayConfirm", new object[]
     {
         price,
         payInfo.Name
     });
     GameMessageBox gameMessageBox = GameMessageBox.ShowMessageBox(@string, MessageBox.Type.OKCancel, payInfo);
     if (gameMessageBox == null)
     {
         return null;
     }
     GameMessageBox expr_47 = gameMessageBox;
     expr_47.OkClick = (MessageBox.MessageDelegate)Delegate.Combine(expr_47.OkClick, new MessageBox.MessageDelegate(gameMessageBox.OnPayOKClicked));
     gameMessageBox.CanCloseByFadeBGClicked = false;
     return gameMessageBox;
 }