/**
         * Used to allow internal classes to fire events published by this class.
         */
        private void fireErrorEvent()
        {
            CastError error = GetLastError();

            if (error == null)
            {
                Debug.LogError("Got an error callback but no error was found");
                return;
            }
            Debug.LogError("Remote display error. ErrorCode: " + error.ErrorCode +
                           " errorMessage: " + error.Message);

            // Always disable the manager in case of an error.
            gameObject.SetActive(false);

            if (RemoteDisplayErrorEvent != null)
            {
                RemoteDisplayErrorEvent.Invoke(this);
            }
        }
Esempio n. 2
0
        /**
         * Used to allow internal classes to fire events published by this class.
         */
        private void fireErrorEvent()
        {
            CastError error = GetLastError();

            if (error == null)
            {
                Debug.LogError("Got an error callback but no error was found");
                return;
            }
            Debug.LogError("Remote display error. ErrorCode: " + error.ErrorCode +
                           " errorMessage: " + error.Message);

            // Always disable the manager in case of an error.
            //gameObject.SetActive(false); // I removed this, because we do not want that. Please don't hate me. - Luc.
            Debug.LogError("This is just here to notify you that Luc removed the cast disable after error notification. He did that because of reasons, and he's very sorry.");

            if (RemoteDisplayErrorEvent != null)
            {
                RemoteDisplayErrorEvent.Invoke(this);
            }
        }