This commit is contained in:
rezazfn 2025-02-14 09:30:42 +08:00
parent 00a364bf41
commit b284e6b007
3 changed files with 2 additions and 4 deletions

View file

@ -254994,7 +254994,7 @@ MonoBehaviour:
storyText: {fileID: 1809346053} storyText: {fileID: 1809346053}
parkPondTrigger: {fileID: 1801320667} parkPondTrigger: {fileID: 1801320667}
schoolTrigger: {fileID: 1357420349} schoolTrigger: {fileID: 1357420349}
xrRig: {fileID: 0} xrRig: {fileID: 1988509987}
--- !u!43 &1359399347 --- !u!43 &1359399347
Mesh: Mesh:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0

View file

@ -35,6 +35,7 @@ public class GoToSchool : MonoBehaviour
void Awake() void Awake()
{ {
Debug.Log("IM AWAKE"); Debug.Log("IM AWAKE");
DontDestroyOnLoad(gameObject);
gameManager = GameManager.Instance; // Reference to GameManager instance gameManager = GameManager.Instance; // Reference to GameManager instance
Debug.Log("currentday: " + gameManager.currentDay); Debug.Log("currentday: " + gameManager.currentDay);
if (storyPanelUI == null) if (storyPanelUI == null)

View file

@ -55,9 +55,6 @@ public class LeaveHouseTrigger : MonoBehaviour
// Load the next scene directly without needing to set the last scene // Load the next scene directly without needing to set the last scene
SceneManager.LoadScene(nextSceneName); SceneManager.LoadScene(nextSceneName);
// Optionally, you can increment the day or perform other necessary actions
GameManager.Instance.IncrementDay();
} }
public void CancelLeave() public void CancelLeave()