From 10f86ee2e05844cc1e00a086b1f0555eb33a4ebd Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期四, 10 一月 2019 21:34:04 +0800
Subject: [PATCH] 3335 平滑处理游戏启动进度条
---
Core/GameEngine/Login/LaunchPostProcess.cs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Core/GameEngine/Login/LaunchPostProcess.cs b/Core/GameEngine/Login/LaunchPostProcess.cs
index d0f43f4..4baacf4 100644
--- a/Core/GameEngine/Login/LaunchPostProcess.cs
+++ b/Core/GameEngine/Login/LaunchPostProcess.cs
@@ -11,7 +11,7 @@
bool m_Completed = false;
public bool completed { get { return m_Completed; } set { m_Completed = value; } }
- public float progress { get { return Config.Instance.GetProgress(); } }
+ public float progress { get { return Mathf.Clamp01((Time.time - startTime) * 0.1f + Config.Instance.GetProgress() * 0.7f); } }
float startTime = 0f;
--
Gitblit v1.8.0