mirror of
https://github.com/RaindropViewer/RaindropViewer.git
synced 2026-07-27 22:11:39 +00:00
bugfix: #16 prevent UI resolves to NRE, during appli teardown with logout-event-being-raised-"too-late".
This commit is contained in:
committed by
alexiscatnip
parent
8a43a5bc59
commit
c3e3b7c7ab
@@ -65,11 +65,17 @@ public class connectivityUI : MonoBehaviour
|
||||
#region view
|
||||
private void show_notConnected()
|
||||
{
|
||||
this.GetComponent<Image>().color = Color.red;
|
||||
if (this != null)
|
||||
{
|
||||
this.GetComponent<Image>().color = Color.red;
|
||||
}
|
||||
}
|
||||
private void show_isConnected()
|
||||
{
|
||||
this.GetComponent<Image>().color = Color.green;
|
||||
if (this != null)
|
||||
{
|
||||
this.GetComponent<Image>().color = Color.green;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user