Files
HelixJump/Assets/Scripts/UI/StartScreenController.cs
2025-12-14 22:51:43 +05:45

25 lines
624 B
C#

using System;
using UnityEngine;
using VContainer;
public class StartScreenController
{
private StartScreenView startScreenView;
public event Action OnStartPressed;
public StartScreenController(StartScreenView _startScreenView)
{
Debug.Log("StartScreenController Constructor Called");
startScreenView = _startScreenView;
startScreenView.tapToStartButton.onClick.AddListener(() => OnStartPressed?.Invoke());
}
private void OnTapToStartButtonClicked()
{
startScreenView.Hide();
}
public void ShowStartScreen()
{
startScreenView.Show();
}
}