Fixed missing Endscreen
This commit is contained in:
@@ -10095,7 +10095,7 @@ GameObject:
|
||||
- component: {fileID: 1566043035}
|
||||
- component: {fileID: 1566043034}
|
||||
m_Layer: 5
|
||||
m_Name: Debug Flush (1)
|
||||
m_Name: Instruction
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
@@ -10874,7 +10874,7 @@ MonoBehaviour:
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
output: {fileID: 1797910565}
|
||||
instruction: {fileID: 0}
|
||||
instruction: {fileID: 1566043034}
|
||||
recorder: {fileID: 2089505615}
|
||||
loadingScreen: {fileID: 1815111294}
|
||||
canvas: {fileID: 304632835}
|
||||
|
||||
@@ -57,12 +57,7 @@ public class FlushAndLoad : MonoBehaviour
|
||||
loadingScreen.SetActive(false);
|
||||
output.text = "";
|
||||
|
||||
if (sceneId == "End")
|
||||
{
|
||||
output.text = "Durchlauf beendet.";
|
||||
instruction.text = "Drücke den rechten Trigger, um die Anwendung zu beenden.";
|
||||
canvas.SetActive(true);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void HandleSceneIdReady(string id, List<GameObject> doors)
|
||||
@@ -72,5 +67,11 @@ public class FlushAndLoad : MonoBehaviour
|
||||
{
|
||||
loadingScreen.SetActive(false);
|
||||
}
|
||||
if (id == "End")
|
||||
{
|
||||
output.text = "Durchlauf beendet.";
|
||||
instruction.text = "Drücke den rechten Trigger, um die Anwendung zu beenden.";
|
||||
canvas.SetActive(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user