feat: Delay on pointer stop hovering
This commit is contained in:
parent
3184a07d5c
commit
962db8d321
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ namespace View {
|
||||||
private void Update() {
|
private void Update() {
|
||||||
bool isPointerOver = EventSystem.current.IsPointerOverGameObject();
|
bool isPointerOver = EventSystem.current.IsPointerOverGameObject();
|
||||||
if (_wasVisible && !isPointerOver) {
|
if (_wasVisible && !isPointerOver) {
|
||||||
ui.DOFade(0, fadeDuration);
|
ui.DOFade(0, fadeDuration).SetDelay(5f);
|
||||||
_wasVisible = false;
|
_wasVisible = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue