Added a way from the upgrades to game scene

This commit is contained in:
Pasha Bibko
2026-04-14 15:57:10 +01:00
parent 41431b9aae
commit 6868788af7
5 changed files with 347 additions and 52 deletions

View File

@@ -0,0 +1,17 @@
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");
});
}
}
}