fix: first clicks now are properly detected
This commit is contained in:
parent
db839ea96d
commit
2cddb7a7b9
13 changed files with 99 additions and 30 deletions
|
@ -5,7 +5,7 @@ using UnityEngine.EventSystems;
|
|||
using UnityEngine.UI;
|
||||
|
||||
namespace View.UI {
|
||||
public class UIVisibility : MonoBehaviour, IScoreView {
|
||||
public class UIVisibility : MonoBehaviour, IInputCallback {
|
||||
[SerializeField] private CanvasGroup ui;
|
||||
[SerializeField] private float fadeDuration = .5f;
|
||||
|
||||
|
@ -31,7 +31,7 @@ namespace View.UI {
|
|||
}
|
||||
}
|
||||
|
||||
public void UpdateView(int score) {
|
||||
public void OnInputReceived() {
|
||||
if (!_titleVisible) return;
|
||||
_titleVisible = false;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue