Ejemplo n.º 1
0
    void OnSetBeginnerBoost()
    {
        var boost = MasterDataUtil.GetMasterDataBeginnerBoost();

        if (boost == null)
        {
            // ホーム画面へ遷移
            NextSequence = MAINMENU_SEQ.SEQ_HOME_MENU;
        }
        else
        {
            if (m_IsExcecLoginBonus == false)
            {
                // ホーム画面へ遷移
                NextSequence = MAINMENU_SEQ.SEQ_HOME_MENU;
            }
            else
            {
                // 初心者ブーストへ遷移
                NextSequence = MAINMENU_SEQ.SEQ_BEGINNER_BOOST;
            }
        }

        LoginBonusFSM.Instance.SendFsmNextEvent();
    }
Ejemplo n.º 2
0
    // SceneStart後に実行
    public void PostSceneStart()
    {
        var boost = MasterDataUtil.GetMasterDataBeginnerBoost();

        if (boost == null)
        {
            //ホーム画面へ遷移
            SceneExit();
            return;
        }

        // 初心者ブースト
        Title = GameTextUtil.GetText("pp5q_title");

        // ランク{0}を超えるまでは、
        Content0 = string.Format(GameTextUtil.GetText("pp5q0_content"), boost.rank_max);

        // スタミナ消費{0}%!
        if (boost.boost_stamina_use != 100)
        {
            Content0 += Environment.NewLine + string.Format(GameTextUtil.GetText("pp5q1_content"), boost.boost_stamina_use);
        }

        // 必要強化費用{0}%!
        if (boost.boost_build_money != 100)
        {
            Content0 += Environment.NewLine + string.Format(GameTextUtil.GetText("pp5q3_content"), boost.boost_build_money);
        }

        // 取得経験値{0}倍!
        if (boost.boost_exp != 100)
        {
            Content0 += Environment.NewLine + string.Format(GameTextUtil.GetText("pp5q2_content"), (float)boost.boost_exp / 100.0f);
        }

        // コインドロップ{0}倍!
        if (boost.boost_money != 100)
        {
            Content0 += Environment.NewLine + string.Format(GameTextUtil.GetText("pp5q4_content"), (float)boost.boost_money / 100.0f);
        }

        // 閉じる
        Button1 = GameTextUtil.GetText("common_button1");


        m_LastUpdateCount = 5;
    }