25 lines
624 B
C#
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();
|
|
}
|
|
}
|