mirror of
https://github.com/RaindropViewer/RaindropViewer.git
synced 2026-07-27 22:11:39 +00:00
bugfix: prevent connectivityUI from NRE
This commit is contained in:
committed by
alexiscatnip
parent
f6b6afd9f3
commit
6b9a285312
@@ -27,6 +27,8 @@ public class connectivityUI : MonoBehaviour
|
||||
|
||||
private void OnDisable()
|
||||
{
|
||||
if (instance == null)
|
||||
return;
|
||||
instance.Netcom.ClientLoginStatus -= NetcomOnClientLoginStatus;
|
||||
instance.Netcom.ClientLoggedOut -= NetcomOnClientLoggedOut;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user