コード例 #1
0
    private void OnDisalbe()
    {
        ITsLightCollector tsLightCollector = TsQualityManager.Instance as ITsLightCollector;

        if (tsLightCollector != null)
        {
            tsLightCollector.Clear();
        }
    }
コード例 #2
0
    private void OnEnable()
    {
        ITsLightCollector tsLightCollector = TsQualityManager.Instance as ITsLightCollector;

        if (tsLightCollector != null)
        {
            tsLightCollector.ChnageCollector(new Func <IEnumerable <Light> >(this.GetLights));
        }
    }