mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
提交
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using UnityEngine;
|
||||
using System.Collections.Generic;
|
||||
using Plugins.JNGame.Sync.Frame.Entity;
|
||||
using UnityEditor;
|
||||
|
||||
namespace Pathfinding {
|
||||
@@ -55,7 +56,7 @@ namespace Pathfinding {
|
||||
|
||||
void Tick () {
|
||||
if (Event.current.type == EventType.Repaint) {
|
||||
float deltaTime = Time.realtimeSinceStartup-lastUpdate;
|
||||
float deltaTime = JNTime.Time.realtimeSinceStartup-lastUpdate;
|
||||
|
||||
// Right at the start of a transition the deltaTime will
|
||||
// not be reliable, so use a very small value instead
|
||||
@@ -66,7 +67,7 @@ namespace Pathfinding {
|
||||
// Larger regions fade slightly slower
|
||||
deltaTime /= Mathf.Sqrt(Mathf.Max(lastRect.height, 100));
|
||||
|
||||
lastUpdate = Time.realtimeSinceStartup;
|
||||
lastUpdate = JNTime.Time.realtimeSinceStartup;
|
||||
|
||||
|
||||
float targetValue = open ? 1F : 0F;
|
||||
|
Reference in New Issue
Block a user