private void Update()
        {
            if (vesselInterface == null)
            {
                return;
            }

            if (!vesselInterface.IsVisible)
            {
                return;
            }

            vesselInterface.Update();

            if (TotalEC != null)
            {
                TotalEC.OnTextUpdate.Invoke(vesselInterface.ECTotal);
            }

            if (Connection != null)
            {
                Sprite connect = vesselInterface.SignalSprite;

                if (connect != null)
                {
                    Connection.sprite = connect;
                }
            }

            if (StartAll != null && PauseAll != null)
            {
                if (anyRunning())
                {
                    if (!PauseAll.gameObject.activeSelf)
                    {
                        PauseAll.gameObject.SetActive(true);
                    }
                }
                else if (PauseAll.gameObject.activeSelf)
                {
                    PauseAll.gameObject.SetActive(false);
                }

                if (anyPaused())
                {
                    if (!StartAll.gameObject.activeSelf)
                    {
                        StartAll.gameObject.SetActive(true);
                    }
                }
                else if (StartAll.gameObject.activeSelf)
                {
                    StartAll.gameObject.SetActive(false);
                }
            }
        }
        private void Update()
        {
            if (vesselInterface == null)
            {
                return;
            }

            if (!vesselInterface.IsVisible)
            {
                return;
            }

            vesselInterface.Update();

            if (TotalEC != null)
            {
                TotalEC.text = vesselInterface.ECTotal;
            }

            if (ExpCount != null)
            {
                ExpCount.text = vesselInterface.ExpCount;
            }

            //if (Connection != null)
            //	Connection.sprite = vesselInterface.IsConnected ? ConnectedSprite : DisconnectedSprite;

            if (SituationText != null)
            {
                SituationText.text = vesselInterface.Situation;
            }

            if (StartAll != null && PauseAll != null)
            {
                if (anyRunning())
                {
                    PauseAll.gameObject.SetActive(true);
                }
                else
                {
                    PauseAll.gameObject.SetActive(false);
                }

                if (anyPaused())
                {
                    StartAll.gameObject.SetActive(true);
                }
                else
                {
                    StartAll.gameObject.SetActive(false);
                }
            }
        }