Updated in game cursor
This commit is contained in:
@@ -19,28 +19,37 @@ namespace Fruitomation.UI
|
||||
{
|
||||
UpgradesButton.onClick.AddListener(() =>
|
||||
{
|
||||
Cursor.visible = true;
|
||||
|
||||
GameStateController.State = GameState.UpgradeMenu;
|
||||
SceneController.StartLoadOf("UpgradesScene");
|
||||
});
|
||||
|
||||
SimulateButton.onClick.AddListener(() =>
|
||||
{
|
||||
Cursor.visible = false;
|
||||
GameStateController.State = GameState.Simulation;
|
||||
});
|
||||
|
||||
BuildButton.onClick.AddListener(() =>
|
||||
{
|
||||
Cursor.visible = true;
|
||||
|
||||
GameStateController.State = GameState.BuildingMenu;
|
||||
});
|
||||
|
||||
PauseButton.onClick.AddListener(() =>
|
||||
{
|
||||
Cursor.visible = true;
|
||||
|
||||
GameStateController.State = GameState.MainMenu;
|
||||
SceneController.StartLoadOf("MainMenu");
|
||||
});
|
||||
|
||||
EditButton.onClick.AddListener(() =>
|
||||
{
|
||||
Cursor.visible = true;
|
||||
|
||||
GameStateController.State = GameState.Editing;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user