ProjetAMJV_CR/Assets/Scripts/UI/Rules.cs
Kirabsol 97aa74cacb Main Menu Rules
Started, should be finished in fact 👍
2025-01-29 01:02:28 +01:00

25 lines
471 B
C#

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);
}
}