EffectQuality.cs 533 B

12345678910111213141516171819
  1. using UnityEngine;
  2. using System.Collections;
  3. public class EffectQuality : MonoBehaviour
  4. {
  5. public bool isLowQuality = false;
  6. public bool isMiddleQuality = false;
  7. private void Awake()
  8. {
  9. if(!isMiddleQuality && DeviceInfo.m_DeviceState!=DeviceInfo.eDeviceState.GOOD_DEVICE)
  10. {
  11. GameObject.Destroy(this.gameObject);
  12. }else if(!isLowQuality && DeviceInfo.m_DeviceState == DeviceInfo.eDeviceState.BAD_DEVICE)
  13. {
  14. GameObject.Destroy(this.gameObject);
  15. }
  16. }
  17. }