Files
Fruitomation/Assets/Scripts/Game/ReturnToGameButton.cs
2026-04-14 15:57:24 +01:00

18 lines
362 B
C#

using UnityEngine.UI;
using UnityEngine;
namespace Fruitomation.Game
{
public class ReturnToGameButton : MonoBehaviour
{
private void Awake()
{
Button b = GetComponent<Button>();
b.onClick.AddListener(() =>
{
SceneController.StartLoadOf("GameScene");
});
}
}
}