ro-webgl/Assets/ArtScript/EffectQuality.cs

20 lines
552 B
C#
Raw Normal View History

2021-12-21 09:40:39 +08:00
using UnityEngine;
using System.Collections;
public class EffectQuality : MonoBehaviour
{
public bool isLowQuality = false;
public bool isMiddleQuality = false;
private void Awake()
{
if(!isMiddleQuality && DeviceInfo.m_DeviceState!=DeviceInfo.eDeviceState.GOOD_DEVICE)
{
GameObject.Destroy(this.gameObject);
}else if(!isLowQuality && DeviceInfo.m_DeviceState == DeviceInfo.eDeviceState.BAD_DEVICE)
{
GameObject.Destroy(this.gameObject);
}
}
}