Beispiel #1
0
    private void OnEnable()
    {
        LightingManagerGI giManager = FindObjectOfType <LightingManagerGI>();

        giManager?.RegisterMaterial(this);
        GetReferences();
    }
Beispiel #2
0
    private void OnDisable()
    {
        LightingManagerGI giManager = FindObjectOfType <LightingManagerGI>();

        giManager?.DeregisterMaterial(this);
    }