diff options
| author | Andrew Lee <alee14498@gmail.com> | 2019-11-03 18:31:04 -0500 |
|---|---|---|
| committer | Andrew Lee <alee14498@gmail.com> | 2019-11-03 18:31:04 -0500 |
| commit | e8dd5d4fd406e6e6b710cbe85309f6870bccc37a (patch) | |
| tree | db0e99cfdbefb1625d66d07631f43565ae8ff41f /Assets/Scripts/UI/LoadScene.cs | |
| parent | 20b14c9a89821e6592bf25bed9329a5abe20495c (diff) | |
| download | Unicity-e8dd5d4fd406e6e6b710cbe85309f6870bccc37a.tar.gz Unicity-e8dd5d4fd406e6e6b710cbe85309f6870bccc37a.tar.bz2 Unicity-e8dd5d4fd406e6e6b710cbe85309f6870bccc37a.zip | |
Remove everything
Diffstat (limited to 'Assets/Scripts/UI/LoadScene.cs')
| -rw-r--r-- | Assets/Scripts/UI/LoadScene.cs | 47 |
1 files changed, 0 insertions, 47 deletions
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); - } - } -} |
