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; }
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; } } }