From 570cbef4ec465bcfa3f38b4fba3d4729fc53ca39 Mon Sep 17 00:00:00 2001 From: Jeff Date: Sun, 30 Jan 2022 14:12:01 +1100 Subject: [PATCH 1/2] Made a scene for testing moving paltforms --- Assets/Scenes/PlatformTest.unity | 3 +++ Assets/Scenes/PlatformTest.unity.meta | 7 +++++++ 2 files changed, 10 insertions(+) create mode 100644 Assets/Scenes/PlatformTest.unity create mode 100644 Assets/Scenes/PlatformTest.unity.meta diff --git a/Assets/Scenes/PlatformTest.unity b/Assets/Scenes/PlatformTest.unity new file mode 100644 index 0000000..3979e39 --- /dev/null +++ b/Assets/Scenes/PlatformTest.unity @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1b8d5f220a9df00668e007c4e8b89fefb31291288671038e64e13db4016cf830 +size 441491 diff --git a/Assets/Scenes/PlatformTest.unity.meta b/Assets/Scenes/PlatformTest.unity.meta new file mode 100644 index 0000000..01e5b70 --- /dev/null +++ b/Assets/Scenes/PlatformTest.unity.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: f399ab73a357cbc4c996a840935ce440 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: From 76244e29091e32307ae8ea6fde2a59ad4522f8d5 Mon Sep 17 00:00:00 2001 From: Jeff Date: Sun, 30 Jan 2022 14:52:03 +1100 Subject: [PATCH 2/2] Level UI --- Assets/Scenes/Credits.unity | 3 +++ Assets/Scenes/Credits.unity.meta | 7 +++++++ Assets/Scenes/Main Menu.unity | 3 +++ Assets/Scenes/Main Menu.unity.meta | 7 +++++++ Assets/Scripts/UI.meta | 8 ++++++++ Assets/Scripts/UI/MenuController.cs | 12 ++++++++++++ Assets/Scripts/UI/MenuController.cs.meta | 11 +++++++++++ ProjectSettings/EditorBuildSettings.asset | 4 ++-- 8 files changed, 53 insertions(+), 2 deletions(-) create mode 100644 Assets/Scenes/Credits.unity create mode 100644 Assets/Scenes/Credits.unity.meta create mode 100644 Assets/Scenes/Main Menu.unity create mode 100644 Assets/Scenes/Main Menu.unity.meta create mode 100644 Assets/Scripts/UI.meta create mode 100644 Assets/Scripts/UI/MenuController.cs create mode 100644 Assets/Scripts/UI/MenuController.cs.meta diff --git a/Assets/Scenes/Credits.unity b/Assets/Scenes/Credits.unity new file mode 100644 index 0000000..22f77bd --- /dev/null +++ b/Assets/Scenes/Credits.unity @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9acdfc570ba1dd93dd1993e4433761839dfcfadee2628db44593e59ea48748b9 +size 43503 diff --git a/Assets/Scenes/Credits.unity.meta b/Assets/Scenes/Credits.unity.meta new file mode 100644 index 0000000..e4ebf02 --- /dev/null +++ b/Assets/Scenes/Credits.unity.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 3a428a0a932fd344bbd39fadc0044b55 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scenes/Main Menu.unity b/Assets/Scenes/Main Menu.unity new file mode 100644 index 0000000..26485d8 --- /dev/null +++ b/Assets/Scenes/Main Menu.unity @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b6bb170350f51223f69cf120f4080fafacdda47ff42f1c7272af410c086c4da1 +size 43905 diff --git a/Assets/Scenes/Main Menu.unity.meta b/Assets/Scenes/Main Menu.unity.meta new file mode 100644 index 0000000..88bafd0 --- /dev/null +++ b/Assets/Scenes/Main Menu.unity.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: a8031f28a3a4d3f489443a65b88ad5f3 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/UI.meta b/Assets/Scripts/UI.meta new file mode 100644 index 0000000..6cd59de --- /dev/null +++ b/Assets/Scripts/UI.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 97e02867f2639f844900dff68e815e49 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/UI/MenuController.cs b/Assets/Scripts/UI/MenuController.cs new file mode 100644 index 0000000..d4a2360 --- /dev/null +++ b/Assets/Scripts/UI/MenuController.cs @@ -0,0 +1,12 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using UnityEngine.SceneManagement; + +public class MenuController : MonoBehaviour +{ + public void LoadLevel(string value) + { + SceneManager.LoadScene(value); + } +} diff --git a/Assets/Scripts/UI/MenuController.cs.meta b/Assets/Scripts/UI/MenuController.cs.meta new file mode 100644 index 0000000..01297ea --- /dev/null +++ b/Assets/Scripts/UI/MenuController.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 057b5d983b62a5b4a99e8b9db5306cf8 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/ProjectSettings/EditorBuildSettings.asset b/ProjectSettings/EditorBuildSettings.asset index 9e1d6c1..c8cb216 100644 --- a/ProjectSettings/EditorBuildSettings.asset +++ b/ProjectSettings/EditorBuildSettings.asset @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:97b40654805e8679125b7bce207937def997d80224ce14027e735689f32f8874 -size 257 +oid sha256:c9682480db3ebe03db4da8aa453bf7de1e9a980f644f11c617f9e80c8e75de1f +size 516