added sounds
This commit is contained in:
24
Assets/Scripts/UI/StartScreenController.cs
Normal file
24
Assets/Scripts/UI/StartScreenController.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user