private void OnDisalbe() { ITsLightCollector tsLightCollector = TsQualityManager.Instance as ITsLightCollector; if (tsLightCollector != null) { tsLightCollector.Clear(); } }
private void OnEnable() { ITsLightCollector tsLightCollector = TsQualityManager.Instance as ITsLightCollector; if (tsLightCollector != null) { tsLightCollector.ChnageCollector(new Func <IEnumerable <Light> >(this.GetLights)); } }