public void UpdateColorsInScene() { _projectColorSetup = ProjectColorSetup.Instance; if (_projectColorSetup == null) { _projectColorSetup = Resources.FindObjectsOfTypeAll <ProjectColorSetup>()[0]; } _projectColorSetup.UpdateSceneMaterialColors(); }
private void OnEnable() { _projectColorSetup = (ProjectColorSetup)target; }