-
Notifications
You must be signed in to change notification settings - Fork 450
fix: allowing quick NetworkHide and NetworkShow [MTT-3488] #1944
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changelog entry?
(also potentially backport?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and a test to verify behavior? :)
Done. |
Yep, changelog added. Backport, for sure, but it's easier to do it as a second PR once this is merged. |
Show(mode == 0, false); | ||
Show(mode == 0, true); | ||
|
||
yield return new WaitForSeconds(0.5f); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perhaps waitforticks (network) instead of waitforseconds?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
None of the options are correct. Both underscore the underlying issues with our tests setup. But yeah, I can change it if you prefer. I guess 5 ticks ought to be enough.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, done using ticks :-)
Verifies which object got OnDestroyed, to prevent confusion on quick NetworkHide and NetworkShow.
Addresses #1940