fps & camera adjs

This commit is contained in:
2024-05-08 13:27:51 +01:00
parent 6346d0246b
commit 52b7649ffe
7 changed files with 138 additions and 84 deletions

View File

@@ -0,0 +1,22 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class FPSManager : MonoBehaviour
{
// Start is called before the first frame update
public int m_FPS = 60;
void Awake()
{
Application.targetFrameRate = m_FPS;
}
// Update is called once per frame
void Update()
{
if (Application.targetFrameRate != m_FPS)
{
Application.targetFrameRate = m_FPS;
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 5f750825a4908024ab4b92d3acf65887
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: