slay
This commit is contained in:
parent
00a364bf41
commit
b284e6b007
3 changed files with 2 additions and 4 deletions
|
@ -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
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Add table
Reference in a new issue