added sounds
This commit is contained in:
25
Assets/Scripts/UI/GameScreenController.cs
Normal file
25
Assets/Scripts/UI/GameScreenController.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
using VContainer;
|
||||
using VContainer.Unity;
|
||||
|
||||
public class GameScreenController
|
||||
{
|
||||
GameScreenView gameScreenView;
|
||||
public event Action OnPausePressed;
|
||||
public GameScreenController(GameScreenView _gameScreenView)
|
||||
{
|
||||
this.gameScreenView = _gameScreenView;
|
||||
gameScreenView.pauseBtn.onClick.AddListener(()=>OnPausePressed?.Invoke());
|
||||
}
|
||||
|
||||
public void ShowGameScreen()
|
||||
{
|
||||
gameScreenView.Show();
|
||||
}
|
||||
|
||||
public void OnPauseButtonClicked()
|
||||
{
|
||||
Debug.Log("Paused Btn Clicked");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user