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); } })); }); } }
public DetailSkill GetData(EUpgrade eUpgrade) => detailSkills.Where(item => item.eUpgrade.Equals(eUpgrade)).First();
void SetOrePurifier(ref float valuePrice, EUpgrade eUpgrade, float rate = .02f) => valuePrice += (valuePrice * GamePlayController.instance.skillData.GetData(eUpgrade).presentLv *rate);