Esempio n. 1
0
    public void Overwrite()
    {
        if (bNameInEnd)
        {
            if (!bDispName)
            {
                // 最新のword_PFBに更新
                cnmScript = gNameManagerObj.GetComponent <CNameManager>();

                Load();

                if (CSceneManager.GetRecently() == "ResultScene")
                {
                    OverwritePlayer.score = CScore.GetScore();
                    Debug.Log("スコア" + OverwritePlayer.score);

                    OverwritePlayer.name = cnmScript.GetName();
                    Debug.Log(OverwritePlayer.name[0]);
                    Debug.Log(OverwritePlayer.name[1]);
                    Debug.Log(OverwritePlayer.name[2]);

                    OverwriteRecord();

                    SaveScore();
                }


                bDispName = true;

                ScoreDisplay();
                NameDisplay();
            }
        }
    }
Esempio n. 2
0
    void Start()
    {
        // CNameManagerの取得
        //gNameManagerObj = GameObject.Find("PFB_Words");
        cnmScript = gNameManagerObj.GetComponent <CNameManager>();

        Load();

        if (CSceneManager.GetRecently() == "ResultScene")
        {
            OverwritePlayer.score = CScore.GetScore();
            Debug.Log("スコア" + OverwritePlayer.score);

            //OverwritePlayer.name = cnmScript.GetName();
            //Debug.Log(OverwritePlayer.name[0]);
            //Debug.Log(OverwritePlayer.name[1]);
            //Debug.Log(OverwritePlayer.name[2]);
        }
        // 情報上書き
        OverwriteRecord();

        // 更新したデータをPlayerPrefs
        SaveScore();
        // ランキング表示
        ScoreDisplay();
        NameDisplay();

        stOldScene = CSceneManager.GetRecently();
    }
Esempio n. 3
0
    public void NameOverwrite()
    {
        // 最新のword_PFBに更新
        cnmScript = gNameManagerObj.GetComponent <CNameManager>();

        if (cnmScript.GetbIsEnd() && !bDispName)
        {
            Load();

            if (CSceneManager.GetRecently() == "ResultScene")
            {
                //OverwritePlayer.score = CScore.GetScore();
                //Debug.Log(OverwritePlayer.score);

                OverwritePlayer.name = cnmScript.GetName();
                Debug.Log(OverwritePlayer.name[0]);
                Debug.Log(OverwritePlayer.name[1]);
                Debug.Log(OverwritePlayer.name[2]);
            }

            OverwriteRecord();

            SaveScore();

            bDispName = true;

            NameDisplay();
        }
    }
Esempio n. 4
0
    void Update()
    {
        // 名前入力を決定終了したら無駄にUpdateの処理をおこなわないようにreturnする。
        if (csmScript.GetNameIn())
        {
            if (bIsUse)
            {
                bIsUse = false;
                //gPanel.SetActive(false);
            }
            return;
        }
        if (bIsUse && !csmScript.GetNameIn())
        {
            if (Input.GetKeyDown(KeyCode.D) || Input.GetButtonDown(stButtonNameRB))
            {
                iSavename[iMojiCount] += 1;

                if (iSavename[iMojiCount] > 69)
                {
                    iSavename[iMojiCount] = 0;
                }
                aAudioSource.PlayOneShot(aSE01);
            }
            if (Input.GetKeyDown(KeyCode.A) || Input.GetButtonDown(stButtonNameLB))
            {
                iSavename[iMojiCount] -= 1;

                if (iSavename[iMojiCount] < 0)
                {
                    iSavename[iMojiCount] = 69;
                }
                aAudioSource.PlayOneShot(aSE01);
            }
            if (Input.GetKeyDown(KeyCode.Return) || Input.GetButtonDown(stButtonNameB))
            {
                iMojiCount++;

                if (iMojiCount >= 3)
                {
                    bIsEnd = true;
                    gPanel.SetActive(false);
                    csmScript.SetNameIn(true);
                    aAudioSource.PlayOneShot(aSE02);
                }
                aAudioSource.PlayOneShot(aSE01);
            }
        }
        if (CSceneManager.GetRecently() == "TitleScene")
        {
            bIsEnd = true;
            gPanel.SetActive(false);
            csmScript.SetNameIn(true);
        }
    }
Esempio n. 5
0
    void Start()
    {
        bNameInEnd = false;
        bDispName  = false;

        // CNameManagerの取得
        //gNameManagerObj = GameObject.Find("PFB_Words");
        cnmScript = gNameManagerObj.GetComponent <CNameManager>();

        // スコア更新と表示はUpdateに移動
        ScoreDisplay();
        NameDisplay();

        stOldScene = CSceneManager.GetRecently();
        Debug.Log(lPlayer.Count);
    }
Esempio n. 6
0
    private void Start()
    {
        Load();

        if (CSceneManager.GetRecently() == "ResultScene")
        {
            //========== 2021/5/09
            // スコアを表示するのに必要なので = の後ろ書き換えました。 by佐々木
            OverwriteScore.score = CScore.GetScore();
            OverwriteRecord();
        }

        SaveScore();

        ScoreDisplay();
    }