added game end screen
also! the new singleton system doesn't work! returning to the main menu creates a second instance of everything, @nick can you fix this please
This commit is contained in:
1 parent
06ae0ab9c2
commit
a164f3130f
6 files changed
+1077
-14
No files matched your search
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 00a8225591a31417a93122f1eb4e7dff
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -912,6 +912,10 @@ PrefabInstance:
|
|||||||
serializedVersion: 3
|
serializedVersion: 3
|
||||||
m_TransformParent: {fileID: 0}
|
m_TransformParent: {fileID: 0}
|
||||||
m_Modifications:
|
m_Modifications:
|
||||||
|
- target: {fileID: 2527389465697474493, guid: ff99a7d0beeca415e911378b9b377de4, type: 3}
|
||||||
|
propertyPath: showDropdown
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 3422388587178177106, guid: ff99a7d0beeca415e911378b9b377de4, type: 3}
|
- target: {fileID: 3422388587178177106, guid: ff99a7d0beeca415e911378b9b377de4, type: 3}
|
||||||
propertyPath: m_Pivot.x
|
propertyPath: m_Pivot.x
|
||||||
value: 0
|
value: 0
|
||||||
|
|||||||
@@ -17,6 +17,9 @@ public class DialogBoxes : MonoBehaviour
|
|||||||
[SerializeField] Image backgroundImageObject;
|
[SerializeField] Image backgroundImageObject;
|
||||||
[SerializeField] Sprite[] images;
|
[SerializeField] Sprite[] images;
|
||||||
|
|
||||||
|
[Header("Buttons:")]
|
||||||
|
[SerializeField] GameObject backToMenuButton;
|
||||||
|
|
||||||
|
|
||||||
// Start is called before the first frame update
|
// Start is called before the first frame update
|
||||||
void Start()
|
void Start()
|
||||||
@@ -37,7 +40,11 @@ public class DialogBoxes : MonoBehaviour
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{ // no more dialog messages, advance the scene
|
{ // no more dialog messages, advance the scene
|
||||||
SceneController.Instance.NextScene();
|
if (backToMenuButton != null) {
|
||||||
|
backToMenuButton.SetActive(true);
|
||||||
|
} else {
|
||||||
|
SceneController.Instance.NextScene();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -33,6 +33,15 @@ public class SceneController : MonoBehaviour
|
|||||||
{ // if this is the menu
|
{ // if this is the menu
|
||||||
GameObject.Find("NewGameButton").GetComponent<Button>().onClick.AddListener(NextScene);
|
GameObject.Find("NewGameButton").GetComponent<Button>().onClick.AddListener(NextScene);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// if this is the last scene
|
||||||
|
if (scene.buildIndex == (SceneManager.sceneCountInBuildSettings - 1)) {
|
||||||
|
GameObject backToMenuButton = GameObject.Find("BackToMenuButton");
|
||||||
|
if (backToMenuButton != null) {
|
||||||
|
backToMenuButton.GetComponent<Button>().onClick.AddListener(delegate{LoadChosenScene(0);});
|
||||||
|
backToMenuButton.SetActive(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void NextScene()
|
public void NextScene()
|
||||||
|
|||||||
@@ -973,6 +973,21 @@ MonoBehaviour:
|
|||||||
m_Scale: 1
|
m_Scale: 1
|
||||||
m_AtlasIndex: 0
|
m_AtlasIndex: 0
|
||||||
m_ClassDefinitionType: 0
|
m_ClassDefinitionType: 0
|
||||||
|
- m_Index: 39
|
||||||
|
m_Metrics:
|
||||||
|
m_Width: 33.75
|
||||||
|
m_Height: 50.625
|
||||||
|
m_HorizontalBearingX: 5.625
|
||||||
|
m_HorizontalBearingY: 50.625
|
||||||
|
m_HorizontalAdvance: 39.375
|
||||||
|
m_GlyphRect:
|
||||||
|
m_X: 743
|
||||||
|
m_Y: 156
|
||||||
|
m_Width: 35
|
||||||
|
m_Height: 51
|
||||||
|
m_Scale: 1
|
||||||
|
m_AtlasIndex: 0
|
||||||
|
m_ClassDefinitionType: 0
|
||||||
m_CharacterTable:
|
m_CharacterTable:
|
||||||
- m_ElementType: 1
|
- m_ElementType: 1
|
||||||
m_Unicode: 32
|
m_Unicode: 32
|
||||||
@@ -1222,6 +1237,10 @@ MonoBehaviour:
|
|||||||
m_Unicode: 93
|
m_Unicode: 93
|
||||||
m_GlyphIndex: 63
|
m_GlyphIndex: 63
|
||||||
m_Scale: 1
|
m_Scale: 1
|
||||||
|
- m_ElementType: 1
|
||||||
|
m_Unicode: 69
|
||||||
|
m_GlyphIndex: 39
|
||||||
|
m_Scale: 1
|
||||||
m_AtlasTextures:
|
m_AtlasTextures:
|
||||||
- {fileID: 553237545021148}
|
- {fileID: 553237545021148}
|
||||||
m_AtlasTextureIndex: 0
|
m_AtlasTextureIndex: 0
|
||||||
@@ -1472,6 +1491,10 @@ MonoBehaviour:
|
|||||||
m_Y: 123
|
m_Y: 123
|
||||||
m_Width: 37
|
m_Width: 37
|
||||||
m_Height: 88
|
m_Height: 88
|
||||||
|
- m_X: 733
|
||||||
|
m_Y: 146
|
||||||
|
m_Width: 54
|
||||||
|
m_Height: 70
|
||||||
m_FreeGlyphRects:
|
m_FreeGlyphRects:
|
||||||
- m_X: 108
|
- m_X: 108
|
||||||
m_Y: 70
|
m_Y: 70
|
||||||
@@ -1593,10 +1616,6 @@ MonoBehaviour:
|
|||||||
m_Y: 76
|
m_Y: 76
|
||||||
m_Width: 43
|
m_Width: 43
|
||||||
m_Height: 53
|
m_Height: 53
|
||||||
- m_X: 733
|
|
||||||
m_Y: 146
|
|
||||||
m_Width: 59
|
|
||||||
m_Height: 877
|
|
||||||
- m_X: 425
|
- m_X: 425
|
||||||
m_Y: 129
|
m_Y: 129
|
||||||
m_Width: 16
|
m_Width: 16
|
||||||
@@ -1629,18 +1648,22 @@ MonoBehaviour:
|
|||||||
m_Y: 129
|
m_Y: 129
|
||||||
m_Width: 38
|
m_Width: 38
|
||||||
m_Height: 894
|
m_Height: 894
|
||||||
- m_X: 733
|
|
||||||
m_Y: 211
|
|
||||||
m_Width: 290
|
|
||||||
m_Height: 812
|
|
||||||
- m_X: 733
|
|
||||||
m_Y: 199
|
|
||||||
m_Width: 156
|
|
||||||
m_Height: 824
|
|
||||||
- m_X: 926
|
- m_X: 926
|
||||||
m_Y: 172
|
m_Y: 172
|
||||||
m_Width: 97
|
m_Width: 97
|
||||||
m_Height: 851
|
m_Height: 851
|
||||||
|
- m_X: 787
|
||||||
|
m_Y: 146
|
||||||
|
m_Width: 5
|
||||||
|
m_Height: 877
|
||||||
|
- m_X: 787
|
||||||
|
m_Y: 211
|
||||||
|
m_Width: 236
|
||||||
|
m_Height: 812
|
||||||
|
- m_X: 787
|
||||||
|
m_Y: 199
|
||||||
|
m_Width: 102
|
||||||
|
m_Height: 824
|
||||||
m_fontInfo:
|
m_fontInfo:
|
||||||
Name:
|
Name:
|
||||||
PointSize: 0
|
PointSize: 0
|
||||||
@@ -1822,7 +1845,7 @@ Texture2D:
|
|||||||
m_ColorSpace: 0
|
m_ColorSpace: 0
|
||||||
m_PlatformBlob:
|
m_PlatformBlob:
|
||||||
image data: 1048576
|
image data: 1048576
|
||||||
_typelessdata: 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004080a0b1212121212121212121212121212121212121212121212121212121212121212120b0a0804000000000000000000000000000000000000050a0d0f10131313131313131313131313131313131313131313100f0d0a0500000000000000000000000000000000000000000000000000000000050a0d0f10131313131313131313131313131313131313131313100f0d0a0500000000000000000000000000000000000005080a0b1313131313131313131312110f0b07010000000000000000000000000000000000000000000000000000000000000000000005080a0b1313131313131313131313131313131313131313131313131313131313131313130b0a08050000000000000000000000000000000000000000000000050a0d0f10131313131313131313130d0c0a0b0f1112131313131313131313130b0a0805000000000000000000000000000000000000050a0d0f10131313131313131313130d0c0a0b0f1112131313131313131313130b0a08050000000000000000000000000000000000000000000000000205070813131313131313131313130807050200000000000000000000000000000000000005080a0b1313131313131313131312110f0b070100000000000000000407090a131313131313131313131313120f0a05000000000000000000000005080a0b1313131313131313131312110f0b0a0c0d13131313131313131313100f0d0a0c0e0e131313131313131313130e0e0c080300000000000000000000000005080a0b131313131313131313131313131313131313131313131313131313100f0d0a050000000000000000000000000000000000000000000000000000000000000000000002070a0c0d13131313131313131313100f0d0a0500000000000000000000000000000000000000000000000000000000050a0d0f10131313131313131313131313131313131313131313100f0d0a050000000000000000000000000000000000000000000000050a0d0f10131313131313131313131313131313131313131313100f0d0a0500000000000000000000000000000000000000000000000000000000000000000000000407090a0d0d0d0d0d0d0d0d0d0d0b0a08050000000000000000000000000000000000000005080a0b1313131313131313131312110f0b07010001070b0f1112131313131313131313130b0a08050000000000000000000000000005080a0b1313131313131313131312110f0b0701000000000000000000000000000000000000050a0f121313131313131313131313130a090704000000000000000000000000000000000000050a0d0f10131313131313131313131313131313131313131313100f0d0a050000000000000000000000000000000000000000000000000000050c111417171e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e171714110c050000000000000000000000000000030a1016191c1d2020202020202020202020202020202020202020201d1c1916100a03000000000000000000000000000000000000000000000000030a1016191c1d2020202020202020202020202020202020202020201d1c1916100a030000000000000000000000000000060c11151718202020202020202020201e1d1b17120c0500000000000000000000000000000000000000000000000000000000000000060c11151718202020202020202020202020202020202020202020202020202020202020202020181715110c0600000000000000000000000000000000000000030a1016191c1d202020202020202020201a1916171b1d1e20202020202020202020181715110c060000000000000000000000000000030a1016191c1d202020202020202020201a1916171b1d1e20202020202020202020181715110c06000000000000000000000000000000000000000003090e12141520202020202020202020201514120e09030000000000000000000000000000060cLine truncated
|
_typelessdata: 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004080a0b1212121212121212121212121212121212121212121212121212121212121212120b0a0804000000000000000000000000000000000000050a0d0f10131313131313131313131313131313131313131313100f0d0a0500000000000000000000000000000000000000000000000000000000050a0d0f10131313131313131313131313131313131313131313100f0d0a0500000000000000000000000000000000000005080a0b1313131313131313131312110f0b07010000000000000000000000000000000000000000000000000000000000000000000005080a0b1313131313131313131313131313131313131313131313131313131313131313130b0a08050000000000000000000000000000000000000000000000050a0d0f10131313131313131313130d0c0a0b0f1112131313131313131313130b0a0805000000000000000000000000000000000000050a0d0f10131313131313131313130d0c0a0b0f1112131313131313131313130b0a08050000000000000000000000000000000000000000000000000205070813131313131313131313130807050200000000000000000000000000000000000005080a0b1313131313131313131312110f0b070100000000000000000407090a131313131313131313131313120f0a05000000000000000000000005080a0b1313131313131313131312110f0b0a0c0d13131313131313131313100f0d0a0c0e0e131313131313131313130e0e0c080300000000000000000000000005080a0b131313131313131313131313131313131313131313131313131313100f0d0a050000000000000000000000000000000000000000000000000000000000000000000002070a0c0d13131313131313131313100f0d0a0500000000000000000000000000000000000000000000000000000000050a0d0f10131313131313131313131313131313131313131313100f0d0a050000000000000000000000000000000000000000000000050a0d0f10131313131313131313131313131313131313131313100f0d0a0500000000000000000000000000000000000000000000000000000000000000000000000407090a0d0d0d0d0d0d0d0d0d0d0b0a08050000000000000000000000000000000000000005080a0b1313131313131313131312110f0b07010001070b0f1112131313131313131313130b0a08050000000000000000000000000005080a0b1313131313131313131312110f0b0701000000000000000000000000000000000000050a0f121313131313131313131313130a090704000000000000000000000000000000000000050a0d0f10131313131313131313131313131313131313131313100f0d0a050000000000000000000000000000000000000000000000000000050c111417171e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e1e171714110c050000000000000000000000000000030a1016191c1d2020202020202020202020202020202020202020201d1c1916100a03000000000000000000000000000000000000000000000000030a1016191c1d2020202020202020202020202020202020202020201d1c1916100a030000000000000000000000000000060c11151718202020202020202020201e1d1b17120c0500000000000000000000000000000000000000000000000000000000000000060c11151718202020202020202020202020202020202020202020202020202020202020202020181715110c0600000000000000000000000000000000000000030a1016191c1d202020202020202020201a1916171b1d1e20202020202020202020181715110c060000000000000000000000000000030a1016191c1d202020202020202020201a1916171b1d1e20202020202020202020181715110c06000000000000000000000000000000000000000003090e12141520202020202020202020201514120e09030000000000000000000000000000060cLine truncated
|
||||||
m_StreamData:
|
m_StreamData:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
offset: 0
|
offset: 0
|
||||||
|
|||||||
Reference in new issue
Block a user