From 5f96222da876151bd7ab1649c038902b30ef8e1c Mon Sep 17 00:00:00 2001
From: client_Lhy <995049470@qq.com>
Date: 星期四, 13 六月 2019 15:15:26 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
---
System/WorldMap/WorldMapWin.cs | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/System/WorldMap/WorldMapWin.cs b/System/WorldMap/WorldMapWin.cs
index 81bc245..aad248e 100644
--- a/System/WorldMap/WorldMapWin.cs
+++ b/System/WorldMap/WorldMapWin.cs
@@ -215,10 +215,14 @@
{
var unLockEffectId = config.Effect[0];
var effect = EffectMgr.Instance.PlayUIEffect(unLockEffectId, 3500, this.transform, false);
- while (effect.IsPlaying)
+ var timer = 0f;
+ while (timer < 5f)
{
+ timer += Time.deltaTime;
yield return null;
}
+
+ EffectMgr.Instance.RecyleUIEffect(unLockEffectId, effect.gameObject);
}
EffectMgr.Instance.PlayUIEffect(3053, 3500, areaBehaviour.transform, false);
--
Gitblit v1.8.0