public void AddPostProcessProfile(PostProcessProfile postProcessProfile) { PostProcessProfileInfo postProcessProfileInfo = new PostProcessProfileInfo { PostProcessProfile = postProcessProfile }; PostProcessProfileInfoList.Add(postProcessProfileInfo); RefreshPostProcessVolumes(); }
public void RefreshPostProcessVolumes() { BiomeMaskArea[] biomeMaskAreas = Object.FindObjectsOfType <BiomeMaskArea>(); for (int i = 0; i <= biomeMaskAreas.Length - 1; i++) { PostProcessProfileInfo postProcessProfileInfo = Instance_GetPostProcessProfileInfo(biomeMaskAreas[i].BiomeType); biomeMaskAreas[i].RefreshPostProcessVolume(postProcessProfileInfo, PostProcessingLayer); } }