Slight UI movements

This commit is contained in:
Iazubi
2024-10-25 16:24:17 -07:00
parent 33120cb9aa
commit 1c43a1cb20
7 changed files with 24 additions and 6 deletions

View File

@@ -0,0 +1,11 @@
using UnityEngine;
using UnityEngine.SceneManagement;
public class SceneLoader : MonoBehaviour
{
// Method to load the "SampleScene"
public void LoadSampleScene()
{
SceneManager.LoadScene("SampleScene");
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 16ff14535a345b84b8c8d9658d06195a

View File

@@ -0,0 +1,16 @@
using UnityEngine;
public class GameQuitter : MonoBehaviour
{
// Method to quit the game
public void QuitGame()
{
// Closes the application
Application.Quit();
// For the editor (testing purposes), stops play mode
#if UNITY_EDITOR
UnityEditor.EditorApplication.isPlaying = false;
#endif
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 8aa67d308b16cc444b3c95f90d78d521

Binary file not shown.

Before

Width:  |  Height:  |  Size: 356 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 389 KiB

View File

@@ -1,10 +1,10 @@
fileFormatVersion: 2
guid: cf0799e8f13416440b8c8ada93e3c61b
guid: fdc7a928c4e2b9f43832ccbb302d53d1
TextureImporter:
internalIDToNameTable:
- first:
213: 7853139185308270890
second: RatStabber_0
213: -8009826392110483304
second: TeoSword_0
externalObjects: {}
serializedVersion: 13
mipmaps:
@@ -126,7 +126,7 @@ TextureImporter:
serializedVersion: 2
sprites:
- serializedVersion: 2
name: RatStabber_0
name: TeoSword_0
rect:
serializedVersion: 2
x: 0
@@ -141,8 +141,8 @@ TextureImporter:
physicsShape: []
tessellationDetail: -1
bones: []
spriteID: a2100083b74fbfc60800000000000000
internalID: 7853139185308270890
spriteID: 898b4b1955167d090800000000000000
internalID: -8009826392110483304
vertices: []
indices:
edges: []