why no work CRI
This commit is contained in:
parent
6a98965eb5
commit
85a7096197
3 changed files with 12 additions and 11 deletions
|
@ -338151,7 +338151,7 @@ BoxCollider:
|
|||
serializedVersion: 2
|
||||
m_Bits: 0
|
||||
m_LayerOverridePriority: 0
|
||||
m_IsTrigger: 0
|
||||
m_IsTrigger: 1
|
||||
m_ProvidesContacts: 0
|
||||
m_Enabled: 1
|
||||
serializedVersion: 3
|
||||
|
@ -338165,13 +338165,13 @@ Transform:
|
|||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1801320666}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: -0, y: -0.36041337, z: -0, w: 0.9327927}
|
||||
m_LocalRotation: {x: -0, y: -0.36623102, z: -0, w: 0.930524}
|
||||
m_LocalPosition: {x: 15.56, y: 21.52, z: 1095.91}
|
||||
m_LocalScale: {x: 3.4323885, y: 3.094469, z: 8.355327}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: -42.251, z: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: -42.967, z: 0}
|
||||
--- !u!43 &1801863514
|
||||
Mesh:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
|
@ -95,7 +95,7 @@ public class GoToSchool : MonoBehaviour
|
|||
private void OnTriggerEnter(Collider other)
|
||||
{
|
||||
|
||||
|
||||
Debug.Log("Triggered by: " + other.gameObject.name);
|
||||
if (gameManager.currentDay == 2)
|
||||
{
|
||||
if (!atPond && other == parkPondTrigger) // Player arrives at pond first
|
||||
|
@ -103,7 +103,7 @@ public class GoToSchool : MonoBehaviour
|
|||
atPond = true;
|
||||
StartCoroutine(StayAtPond());
|
||||
}
|
||||
else if (atPond && !hasTriggered && other == schoolTrigger) // Player can go to school after pond
|
||||
else if (atPond && other == schoolTrigger) // Player can go to school after pond
|
||||
{
|
||||
hasTriggered = true;
|
||||
StartCoroutine(FadeInAndLoadScene());
|
||||
|
|
|
@ -42,14 +42,15 @@ public class LeaveHouseTrigger : MonoBehaviour
|
|||
if (gameManager.currentDay == 1)
|
||||
{
|
||||
warningText.text = "Should I leave the house? I might not have completed everything...";
|
||||
StartCoroutine(HideWarningPanelAfterDelay(7f)); // can change how long you want the text to show for
|
||||
|
||||
}
|
||||
|
||||
if (gameManager.currentDay == 2)
|
||||
else if (gameManager.currentDay == 2)
|
||||
{
|
||||
warningText.text = "Do I even want to go to school...";
|
||||
StartCoroutine(HideWarningPanelAfterDelay(7f)); // can change how long you want the text to show for
|
||||
|
||||
}
|
||||
StartCoroutine(HideWarningPanelAfterDelay(7f)); // can change how long you want the text to show for
|
||||
}
|
||||
|
||||
IEnumerator HideWarningPanelAfterDelay(float delay)
|
||||
|
@ -69,13 +70,13 @@ public class LeaveHouseTrigger : MonoBehaviour
|
|||
|
||||
public void CancelLeave()
|
||||
{
|
||||
confirmationPanel.SetActive(false);
|
||||
warningPanel.SetActive(true);
|
||||
|
||||
if (gameManager.currentDay == 2)
|
||||
{
|
||||
gameManager.IncrementDay();
|
||||
SceneManager.LoadScene(Day3);
|
||||
}
|
||||
confirmationPanel.SetActive(false);
|
||||
warningPanel.SetActive(true);
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue