TimeOfDayManager.SeekItems C# (CSharp) Méthode

SeekItems() public méthode

public SeekItems ( ) : void
Résultat void
    public void SeekItems()
    {
        //TODO should limit this to one per frame, end of frame/lateUpdate
        props = FindObjectsOfType<ObjectProperties>().ToList();
        suns = FindObjectsOfType<SunProperties>().Cast<ObjectProperties>().ToList();
        instantUpdate = FindObjectsOfType<ColorGradingProperties>().Cast<ObjectProperties>().ToList(); // TODO change to find by interface
        if (findAllProbes) probes = FindObjectsOfType<ReflectionProbe>().ToList();

        props.ForEach(o => o.timeOfDayManager = this);
        suns.ForEach(o => o.timeOfDayManager = this);
        instantUpdate.ForEach(o => o.timeOfDayManager = this);

        Debug.Log("TimeOfDay SeekItems: prop:" + props.Count + " sun:" + suns.Count + " probe:" + probes.Count + " inst:" + instantUpdate.Count(),this);
    }