8000 turning page off if no animation is used · coderDarren/UnityCore@9b086dc · GitHub
[go: up one dir, main page]

Skip to content

Commit 9b086dc

Browse files
committed
turning page off if no animation is used
1 parent 4b72d1b commit 9b086dc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Menu/Page.cs

+4
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ public void Animate(bool _on) {
4242

4343
StopCoroutine("AwaitAnimation");
4444
StartCoroutine("AwaitAnimation", _on);
45+
} else {
46+
if (!_on) {
47+
gameObject.SetActive(false);
48+
}
4549
}
4650
}
4751
#endregion

0 commit comments

Comments
 (0)
0