コード例 #1
0
    public void ConfirmarDefinitivo(string primeiracena)
    {
        GameInformation.loadingSave = false;
        SaveInformation.SaveAll();

        SceneManager.LoadScene(primeiracena);
    }
コード例 #2
0
    // Update is called once per frame
    void Update()
    {
        if (hudHandleScript.interactSave)
        {
            if (Input.GetKeyDown(KeyCode.E))
            {
                pressedBtn = true;
            }

            if (Input.GetKeyUp(KeyCode.E) && pressedBtn)
            {
                GameInformation.LastScene = SceneManager.GetActiveScene().name;
                GameInformation.LastPos   = playerPhisical.GetPlayerPos();

                SaveInformation.SaveAll();
                BaseHUDHandler.ToggleSavePopUp();
                saveSoundFX.Play();

                pressedBtn = false;
            }
        }
    }