Added a way from the upgrades to game scene
This commit is contained in:
17
Assets/Scripts/Game/ReturnToGameButton.cs
Normal file
17
Assets/Scripts/Game/ReturnToGameButton.cs
Normal 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");
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user