fps & camera adjs
This commit is contained in:
22
Assets/8_Scripts/1_Managers/FPSManager.cs
Normal file
22
Assets/8_Scripts/1_Managers/FPSManager.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
11
Assets/8_Scripts/1_Managers/FPSManager.cs.meta
generated
Normal file
11
Assets/8_Scripts/1_Managers/FPSManager.cs.meta
generated
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5f750825a4908024ab4b92d3acf65887
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user