2023-03-14 16:44:25 +01:00
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
public class FrameRateSetter : MonoBehaviour
|
|
|
|
|
{
|
2023-09-27 23:15:38 +02:00
|
|
|
|
2023-03-14 16:44:25 +01:00
|
|
|
private void Awake() {
|
2023-09-27 23:15:38 +02:00
|
|
|
#if !UNITY_ANDROID || !UNITY_IOS
|
2023-03-14 16:44:25 +01:00
|
|
|
Application.targetFrameRate = 60;
|
2023-09-27 23:15:38 +02:00
|
|
|
#else
|
|
|
|
|
Application.targetFrameRate = 30;
|
|
|
|
|
#endif
|
2023-03-14 16:44:25 +01:00
|
|
|
}
|
2023-04-20 14:48:38 +02:00
|
|
|
}
|