chenxin
2020-12-25 adb0dae8a82a7eabb4e686bc0e83c8859bf6445f
Assets/Scripts/TowerDefense/Cameras/PostProcessorConfigurationSelector.cs
@@ -1,31 +1,31 @@
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;
//      }
//   }
//}