From 49e0f5483c099f4bf6d8222fbe1acadd0ee689ab Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期五, 31 八月 2018 10:04:32 +0800
Subject: [PATCH] 1772 整理帧率设置接口。
---
System/SystemSetting/SystemSetting.cs | 10 +---------
1 files changed, 1 insertions(+), 9 deletions(-)
diff --git a/System/SystemSetting/SystemSetting.cs b/System/SystemSetting/SystemSetting.cs
index 8c82a35..a6412d8 100644
--- a/System/SystemSetting/SystemSetting.cs
+++ b/System/SystemSetting/SystemSetting.cs
@@ -56,7 +56,7 @@
public void SetGameFps(GameFps _frame)
{
LocalSave.SetInt(GAMEFRAME_KEY, (int)_frame);
- SetFPSLimit((int)_frame);
+ Application.targetFrameRate = Mathf.Clamp((int)_frame, 30, 60);
if (gameFrameChangeEvent != null)
{
gameFrameChangeEvent();
@@ -216,15 +216,7 @@
}
}
- public void SetFPSLimit(int _fps)
- {
- Application.targetFrameRate = Mathf.Clamp(_fps, 30, 60);
- }
- public int GetFPSLimit()
- {
- return (int)GetGameFps();
- }
public void LetFPSUnLimit()
{
--
Gitblit v1.8.0