Main Menu Rules
Started, should be finished in fact 👍
This commit is contained in:
parent
9a67bd00aa
commit
97aa74cacb
26 changed files with 2020 additions and 1 deletions
File diff suppressed because it is too large
Load diff
8
Assets/Scripts/UI.meta
Normal file
8
Assets/Scripts/UI.meta
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: ad9ada27959b57a48a60a93bf75020b1
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
|
@ -17,7 +17,9 @@ public class Buttons : MonoBehaviour
|
||||||
|
|
||||||
public void PlayGame()
|
public void PlayGame()
|
||||||
{
|
{
|
||||||
GameManager.Instance.GoNextLevel();
|
this.gameObject.SetActive(false);
|
||||||
|
GameObject.Find("Rules").SetActive(true);
|
||||||
|
//GameManager.Instance.GoNextLevel();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void LaunchSettings()
|
public void LaunchSettings()
|
25
Assets/Scripts/UI/Rules.cs
Normal file
25
Assets/Scripts/UI/Rules.cs
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
using TMPro;
|
||||||
|
using UnityEngine;
|
||||||
|
using UnityEngine.SceneManagement;
|
||||||
|
|
||||||
|
public class Rules : MonoBehaviour
|
||||||
|
{
|
||||||
|
|
||||||
|
public TMP_InputField money;
|
||||||
|
|
||||||
|
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void SetMoney()
|
||||||
|
{
|
||||||
|
GlobalsVariable.money = int.Parse(money.text);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void LaunchLevel(int level)
|
||||||
|
{
|
||||||
|
SceneManager.LoadSceneAsync(level);
|
||||||
|
}
|
||||||
|
}
|
2
Assets/Scripts/UI/Rules.cs.meta
Normal file
2
Assets/Scripts/UI/Rules.cs.meta
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: f557c03ae4a119348a3156e2b73bd369
|
Loading…
Add table
Add a link
Reference in a new issue