void UpdateMonthCardImg() { Image img = monthCardBtn.GetComponent <Image>(); img.sprite = monthCardImgs[ExchangeModule.GetMaxMonthCard() - 1]; img.SetNativeSize(); }
public override void Process() { if (result == END_OK) { ExchangeModule.OnBuyMonthCardSucess(cardid); } }
void OnBuyBtnClick() { ExchangeTemplate ex = DataTemplate.GetInstance().GetExchangeTemplateByMonthCardId(_monthCardT.getId()); ExchangeModule.ChargeMoney(ex.getId()); CloseUI(); }
private void ForwardFinish() { int max = (int)ExchangeModule.GetMaxTimeScaleState(); TimeScaleState model = (TimeScaleState)Mathf.Min(max, ((int)GameTimeControler.Inst.curTimeScaleState % max + 1)); GameTimeControler.Inst.SetState(model); // 切换纹理 switch (GameTimeControler.Inst.curTimeScaleState) { case TimeScaleState.TimeScale_Double: { m_Speed.text = "x2"; } break; case TimeScaleState.TimeScale_Triple: { m_Speed.text = "x3"; } break; case TimeScaleState.TimeScale_Normal: { m_Speed.text = "x1"; } break; } }
//-------------------------------------------------------------------------------------------------- internal static void Initialize(CommandLine cmdLine) { CommandLine = cmdLine; if (IsInSandbox) { DebugPipeServer.Open(); } Current = new AppContext(); ExchangeModule.Initialize(); }
public void UpdatePerSec() { if (m_Type == Monthcard_Type.Forever) { return; } if (m_GotType == Monthcard_GotType.NotHave) { return; } //判断提示信息; StringBuilder sb = new StringBuilder(); sb.Append(GameUtils.getString("monthcard_content3")); sb.Append(ExchangeModule.GetMonthCardToEnd(mt.getId()).Days.WithColor("#98DBFF")); hintTxt.text = sb.ToString(); }
void OnItemClick() { //ShopModule.BuyItem(mShopT.getId(), 1, false); ExchangeModule.ChargeMoney(mExchangeT.getId()); }