Esempio n. 1
0
    void Start()
    {
        //起動時のみ読み込みを行い、続き/最初から行う.
        if (LoadStart == false)
        {
            ExPortData.Loadtext(ExPortData.GetInternalStoragePath(),
                                "SceneNoData.txt", inData, ref ButtonProc.SceneNo);

            //ファイルが存在しないとき.
            if (ButtonProc.SceneNo == 0)
            {
                //最初の面に飛ばす.
                ButtonProc.SceneNo = 1;
            }

            LoadStart = true;
            SceneManager.LoadScene(ButtonProc.SceneNo);
        }
        else
        {
            //切り替える前に記録し、次回は選択したステージから始める.
            ExPortData.SaveText(ExPortData.GetInternalStoragePath(),
                                "SceneNoData.txt", ButtonProc.SceneNo.ToString());
            SceneManager.LoadScene(ButtonProc.SceneNo);
        }
    }
Esempio n. 2
0
    void Start()
    {
        //毎回読み込む.
        ExPortData.Loadtext(ExPortData.GetInternalStoragePath(),
                            "S_MoneyData.txt",
                            inDataMoney, ref ReportMoney);

        Debug.Log(ReportMoney);

        SocreMoney = ReportMoney;
        AddMoney   = false;
        BuyMoney   = false;
    }
Esempio n. 3
0
    //pub sta

    //local


    void Start()
    {
        ExPortData.Loadtext(ExPortData.GetInternalStoragePath(),
                            "ScoreItemData.txt",
                            inDataShop, ref ItemProc.ScoreUP_I);


        ExPortData.Loadtext(ExPortData.GetInternalStoragePath(),
                            "TimeBonusItemData.txt",
                            inDataShop, ref ItemProc.TimeBonudUP_I);

        Debug.Log(ItemProc.ScoreUP_I);
        Debug.Log(ItemProc.TimeBonudUP_I);
    }
Esempio n. 4
0
    void Start()
    {
        ReportScore     = 0;
        ReportTimeBonus = 0;
        //毎回読み込みを行う.
        ExPortData.Loadtext(ExPortData.GetInternalStoragePath(),
                            "HighScoreData.txt",
                            inData, ref ReportScore);

        Debug.Log(ReportScore);
        HighScore = ReportScore;

        Score = 0;
    }
Esempio n. 5
0
    public static int useItem;              //アイテム使用上限設定数(共通項かつ1つしか存在しない).

    //local

    void Start()
    {
        //バグ防止用.
        ScoreUP_I     = 0;
        TimeBonudUP_I = 0;

        //アイテム所持数の読み込み.
        ExPortData.Loadtext(ExPortData.GetInternalStoragePath(),
                            "ScoreItemData.txt",
                            inDataItem, ref ScoreUP_I);
        Debug.Log(ScoreUP_I);


        ExPortData.Loadtext(ExPortData.GetInternalStoragePath(),
                            "TimeBonusItemData.txt",
                            inDataItem, ref TimeBonudUP_I);
        Debug.Log(TimeBonudUP_I);

        ScoreUP_mag     = 0;
        TimeBonudUP_mag = 0;

        useItem = 0;
    }