chore: organized project ui structure
This commit is contained in:
parent
58ec07b1a0
commit
d6c618add0
10 changed files with 8 additions and 4 deletions
20
Assets/Scripts/View/UI/CloseButton.cs
Normal file
20
Assets/Scripts/View/UI/CloseButton.cs
Normal file
|
@ -0,0 +1,20 @@
|
|||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace View.UI {
|
||||
public class CloseButton : MonoBehaviour {
|
||||
private Button _button;
|
||||
|
||||
private void Start() {
|
||||
_button = GetComponent<Button>();
|
||||
_button.onClick.AddListener(CloseClicked);
|
||||
}
|
||||
|
||||
private void CloseClicked() {
|
||||
#if UNITY_EDITOR
|
||||
Debug.Log("Quit");
|
||||
#endif
|
||||
Application.Quit();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue