15 lines
292 B
C#
15 lines
292 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class FrameRateSetter : MonoBehaviour
|
|
{
|
|
|
|
private void Awake() {
|
|
#if !UNITY_ANDROID || !UNITY_IOS
|
|
Application.targetFrameRate = 60;
|
|
#else
|
|
Application.targetFrameRate = 30;
|
|
#endif
|
|
}
|
|
} |