Exemplo n.º 1
0
 public void ToTitle()
 {
     SaveManager.Instance.Save();
     Destroy(FindObjectOfType <Player.CoolerBox>().gameObject);
     StageSelectMgr.SetTitleActive();
     SceneManager.LoadScene("StageSelect");
     SaveManager.Instance.AddWeek();
 }
Exemplo n.º 2
0
    private void Start()
    {
        stageProgess = PlayerDataMgr.playerData_SO.stageProgress;
        GetComponent <InputField>().text = stageProgess.ToString();

        stageSelectMgr = FindObjectOfType <StageSelectMgr>();

        GetComponent <InputField>().onValueChanged.AddListener(OnValueChange_StageProgressInputField);
    }