Slight UI movements
This commit is contained in:
16
Assets/MainMenuUI/QuitGame.cs
Normal file
16
Assets/MainMenuUI/QuitGame.cs
Normal 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
|
||||
}
|
||||
}
|
||||
2
Assets/MainMenuUI/QuitGame.cs.meta
Normal file
2
Assets/MainMenuUI/QuitGame.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8aa67d308b16cc444b3c95f90d78d521
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 356 KiB |
BIN
Assets/MainMenuUI/TeoSword.jpg
Normal file
BIN
Assets/MainMenuUI/TeoSword.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 389 KiB |
@@ -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: []
|
||||
Reference in New Issue
Block a user