diff --git a/Assets/Raindrop/Connectivity/connectivityUI.cs b/Assets/Raindrop/Connectivity/connectivityUI.cs index 388e8f6..45188e3 100644 --- a/Assets/Raindrop/Connectivity/connectivityUI.cs +++ b/Assets/Raindrop/Connectivity/connectivityUI.cs @@ -65,11 +65,17 @@ public class connectivityUI : MonoBehaviour #region view private void show_notConnected() { - this.GetComponent().color = Color.red; + if (this != null) + { + this.GetComponent().color = Color.red; + } } private void show_isConnected() { - this.GetComponent().color = Color.green; + if (this != null) + { + this.GetComponent().color = Color.green; + } } #endregion }