Example #1
0
    public void goToGameScene()
    {
        GetComponent <AudioSource> ().Play();

        if (DataManager._stageInfo == null && !LoadJson.IsStageInfoFileExists())
        {
            Camera.main.gameObject.GetComponent <StartSceneCamere> ()._loadDataMask.gameObject.SetActive(true);
            return;
        }

        DataManager._isOver         = false;
        DataManager._timeCount      = 0.0f;
        DataManager._currentStage   = ButtonNum;
        DataManager._volumNum       = PlayerPrefs.GetFloat("VolumNumber");   //LoadJson.LoadSavedUserInfo () ["VolumNumber"].ToString();
        DataManager._didRec         = true;
        DataManager._isRec          = true;
        DataManager._waitForRebirth = false;
        DataManager._isUsedRebirth  = false;
        SceneManager.LoadScene("GameScene_1");
    }