Exemplo n.º 1
0
 void Dispatcher_onWarningUpgrade(EUpgrade type, string message, string market)
 {
     if (type == EUpgrade.ForceUpdate || type == EUpgrade.MaybeUpdate)
     {
         PuMain.Setting.Threading.QueueOnMainThread(() =>
         {
             DialogService.Instance.ShowDialog(new DialogConfirm("Kiểm tra phiên bản", message, delegate(bool?click)
             {
                 if (click == true || type == EUpgrade.ForceUpdate)
                 {
                     Application.OpenURL(market);
                 }
             }));
         });
     }
 }
Exemplo n.º 2
0
 public DetailSkill GetData(EUpgrade eUpgrade) => detailSkills.Where(item => item.eUpgrade.Equals(eUpgrade)).First();
Exemplo n.º 3
0
 void SetOrePurifier(ref float valuePrice, EUpgrade eUpgrade, float rate = .02f) => valuePrice += (valuePrice * GamePlayController.instance.skillData.GetData(eUpgrade).presentLv *rate);