| | |
| | | using UnityEngine; |
| | | using UnityEngine.PostProcessing; |
| | | //using UnityEngine; |
| | | //using UnityEngine.PostProcessing; |
| | | |
| | | namespace TowerDefense.Cameras |
| | | { |
| | | /// <summary> |
| | | /// Simple component to select lower quality post processing configurations on mobile |
| | | /// </summary> |
| | | [RequireComponent(typeof(PostProcessingBehaviour))] |
| | | public class PostProcessorConfigurationSelector : MonoBehaviour |
| | | { |
| | | public PostProcessingProfile highQualityProfile; |
| | | //namespace TowerDefense.Cameras |
| | | //{ |
| | | // /// <summary> |
| | | // /// Simple component to select lower quality post processing configurations on mobile |
| | | // /// </summary> |
| | | // [RequireComponent(typeof(PostProcessingBehaviour))] |
| | | // public class PostProcessorConfigurationSelector : MonoBehaviour |
| | | // { |
| | | // public PostProcessingProfile highQualityProfile; |
| | | |
| | | public PostProcessingProfile lowQualityProfile; |
| | | // public PostProcessingProfile lowQualityProfile; |
| | | |
| | | protected virtual void Awake() |
| | | { |
| | | var attachedPostProcessor = GetComponent<PostProcessingBehaviour>(); |
| | | // protected virtual void Awake() |
| | | // { |
| | | // var attachedPostProcessor = GetComponent<PostProcessingBehaviour>(); |
| | | |
| | | PostProcessingProfile selectedProfile; |
| | | // PostProcessingProfile selectedProfile; |
| | | |
| | | #if UNITY_STANDALONE |
| | | selectedProfile = highQualityProfile; |
| | | #else |
| | | selectedProfile = lowQualityProfile; |
| | | #endif |
| | | //#if UNITY_STANDALONE |
| | | // selectedProfile = highQualityProfile; |
| | | //#else |
| | | // selectedProfile = lowQualityProfile; |
| | | //#endif |
| | | |
| | | attachedPostProcessor.profile = selectedProfile; |
| | | } |
| | | } |
| | | } |
| | | // attachedPostProcessor.profile = selectedProfile; |
| | | // } |
| | | // } |
| | | //} |