simple UI added

This commit is contained in:
Mausham
2025-12-11 18:20:42 -08:00
parent 60e58082ac
commit 2118bb7c36
576 changed files with 126744 additions and 13 deletions

View File

@@ -0,0 +1,37 @@
using UnityEngine;
using VContainer;
public class StartScreenController
{
private StartScreenView _view;
public bool hasGameStarted = false;
public StartScreenController(StartScreenView view)
{
_view = view;
_view.playBtn.onClick.AddListener(OnPlayBtnClicked);
Debug.Log("Instance");
}
public void OnPlayBtnClicked()
{
_view.Hide();
hasGameStarted = true;
}
public void ShowStartScreen()
{
_view.Show();
hasGameStarted = false;
}
public void HideStartScreen()
{
_view.Hide();
hasGameStarted = true;
}
}