|
@@ -860,7 +860,9 @@ public class InfraredDemo : MonoBehaviour
|
|
|
{
|
|
{
|
|
|
//SetResolutionNew 里面对应的下标
|
|
//SetResolutionNew 里面对应的下标
|
|
|
int _resolutionIndex = 0;
|
|
int _resolutionIndex = 0;
|
|
|
- switch ((int)resoutionNew.Get())
|
|
|
|
|
|
|
+
|
|
|
|
|
+#if UNITY_ANDROID
|
|
|
|
|
+ switch ((int)resoutionNew.Get())
|
|
|
{
|
|
{
|
|
|
case 10:
|
|
case 10:
|
|
|
//Vector2(320, 240);
|
|
//Vector2(320, 240);
|
|
@@ -871,6 +873,8 @@ public class InfraredDemo : MonoBehaviour
|
|
|
_resolutionIndex = 1;
|
|
_resolutionIndex = 1;
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
|
|
|
+#endif
|
|
|
|
|
+
|
|
|
return _resolutionIndex;
|
|
return _resolutionIndex;
|
|
|
}
|
|
}
|
|
|
/// <summary>
|
|
/// <summary>
|