コード例 #1
0
ファイル: PlayerInfo.cs プロジェクト: ww386362087/MoyuHero
    void UpdateMonthCardImg()
    {
        Image img = monthCardBtn.GetComponent <Image>();

        img.sprite = monthCardImgs[ExchangeModule.GetMaxMonthCard() - 1];
        img.SetNativeSize();
    }
コード例 #2
0
ファイル: SMonthCard.cs プロジェクト: ww386362087/MoyuHero
 public override void Process()
 {
     if (result == END_OK)
     {
         ExchangeModule.OnBuyMonthCardSucess(cardid);
     }
 }
コード例 #3
0
    void OnBuyBtnClick()
    {
        ExchangeTemplate ex = DataTemplate.GetInstance().GetExchangeTemplateByMonthCardId(_monthCardT.getId());

        ExchangeModule.ChargeMoney(ex.getId());
        CloseUI();
    }
コード例 #4
0
        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;
            }
        }
コード例 #5
0
        //--------------------------------------------------------------------------------------------------

        internal static void Initialize(CommandLine cmdLine)
        {
            CommandLine = cmdLine;
            if (IsInSandbox)
            {
                DebugPipeServer.Open();
            }

            Current = new AppContext();

            ExchangeModule.Initialize();
        }
コード例 #6
0
    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();
    }
コード例 #7
0
 void OnItemClick()
 {
     //ShopModule.BuyItem(mShopT.getId(), 1, false);
     ExchangeModule.ChargeMoney(mExchangeT.getId());
 }