示例#1
0
        private void Start()
        {
            ReportingType = ConfigState.Instance.PlayerLightReporting;
            //Debug.Log("Light reporting mode: " + ReportingType);

            //should we disable if ReportingType is None?
            //if (ReportingType == PlayerLightReportingType.None)
            //    enabled = false;
            SetupProbe();
            SetProbedComponentsState();
            FramesSinceLast = short.MaxValue;
        }
示例#2
0
        private void HandleMessageReceived(QdmsMessage message)
        {
            if (message is QdmsFlagMessage flagMessage && flagMessage.Flag == "ConfigChanged")
            {
                ReportingType = ConfigState.Instance.PlayerLightReporting;
                //Debug.Log("Light reporting mode: " + ReportingType);
                SetProbedComponentsState();
                FramesSinceLast = short.MaxValue;

                if (ReportingType == PlayerLightReportingType.None)
                {
                    Light = Color.white;
                }
            }
        }