diff options
Diffstat (limited to 'Assets/Scripts/UI')
| -rw-r--r-- | Assets/Scripts/UI/ExitApplication.cs | 19 | ||||
| -rw-r--r-- | Assets/Scripts/UI/ExitApplication.cs.meta | 11 | ||||
| -rw-r--r-- | Assets/Scripts/UI/LoadScene.cs | 47 | ||||
| -rw-r--r-- | Assets/Scripts/UI/LoadScene.cs.meta | 11 |
4 files changed, 0 insertions, 88 deletions
diff --git a/Assets/Scripts/UI/ExitApplication.cs b/Assets/Scripts/UI/ExitApplication.cs deleted file mode 100644 index b1579a1..0000000 --- a/Assets/Scripts/UI/ExitApplication.cs +++ /dev/null @@ -1,19 +0,0 @@ -/******************************************************************************* -* -* Unicity (Project SimLife): A Sims clone written in Unity C# -* Copyright (C) 2019 Unicity Development Team -* -* This software is protected by the copyright and licensing rights held -* by the Unicity Development Team. (2019) -* -*********************************************************************************/ -using System.Collections; -using System.Collections.Generic; -using UnityEngine; - -public class ExitApplication : MonoBehaviour { - public void ExitGame() { - Debug.Log("Game has closed."); - Application.Quit(); - } -} diff --git a/Assets/Scripts/UI/ExitApplication.cs.meta b/Assets/Scripts/UI/ExitApplication.cs.meta deleted file mode 100644 index 21c9ff8..0000000 --- a/Assets/Scripts/UI/ExitApplication.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: eb5fd4aa07251794aaa5c0194e617eb8 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Scripts/UI/LoadScene.cs b/Assets/Scripts/UI/LoadScene.cs deleted file mode 100644 index 3fbb91e..0000000 --- a/Assets/Scripts/UI/LoadScene.cs +++ /dev/null @@ -1,47 +0,0 @@ -/******************************************************************************* -* -* Unicity (Project SimLife): A Sims clone written in Unity C# -* Copyright (C) 2019 Unicity Development Team -* -* This software is protected by the copyright and licensing rights held -* by the Unicity Development Team. (2019) -* -*********************************************************************************/ -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEngine.SceneManagement; - -public class LoadScene : MonoBehaviour { - bool doMenuRotate; - int _SceneIndex; - GameObject MainPanel; - - public void MainMenuPlayButton(int SceneIndex) { - doMenuRotate = true; - _SceneIndex = SceneIndex; - } - - public void SceneLoader(int SceneIndex) { - SceneManager.LoadScene(SceneIndex); - } - - public void Start() { - doMenuRotate = false; - MainPanel = GameObject.Find("MainPanel"); - } - - public void Update() { - if (doMenuRotate) { - if (MainPanel.transform.eulerAngles.z < 90) { - MainPanel.transform.Rotate(0, 0, MainPanel.transform.rotation.eulerAngles.z + 0.01f); - } else { - doMenuRotate = false; - } - } - - if (MainPanel.transform.eulerAngles.z > 90) { - SceneLoader(_SceneIndex); - } - } -} diff --git a/Assets/Scripts/UI/LoadScene.cs.meta b/Assets/Scripts/UI/LoadScene.cs.meta deleted file mode 100644 index c27b60f..0000000 --- a/Assets/Scripts/UI/LoadScene.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: cae04aeb24aa3764b8cdcc4df0baade4 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: |
