2024-10-29 21:26:45 +08:00
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
public class FrameRateManager : MonoBehaviour
|
|
|
|
|
{
|
2024-12-25 23:35:36 +08:00
|
|
|
|
public float globalFrameRate = 60; // <20><><EFBFBD>õ<EFBFBD>Ŀ<EFBFBD><C4BF>֡<EFBFBD><D6A1>
|
2024-10-29 21:26:45 +08:00
|
|
|
|
|
|
|
|
|
void Start()
|
|
|
|
|
{
|
|
|
|
|
Application.targetFrameRate = Mathf.RoundToInt(globalFrameRate); // <20><><EFBFBD><EFBFBD>Ŀ<EFBFBD><C4BF>֡<EFBFBD><D6A1>
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|