From 3051fbb3cb30e3b92f66098ab87fe279219b9ce4 Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期六, 25 八月 2018 16:49:24 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
---
System/Mount/PlayerMountDatas.cs | 21 ++++++++++++++++++++-
1 files changed, 20 insertions(+), 1 deletions(-)
diff --git a/System/Mount/PlayerMountDatas.cs b/System/Mount/PlayerMountDatas.cs
index b6b6b36..fb96905 100644
--- a/System/Mount/PlayerMountDatas.cs
+++ b/System/Mount/PlayerMountDatas.cs
@@ -98,7 +98,8 @@
public void OnPlayerLoginOk()
{
-
+ GlobalTimeEvent.Instance.secondEvent -= secondEvent;
+ GlobalTimeEvent.Instance.secondEvent += secondEvent;
IsOk = true;
SinglePackModel singPack = playerPack.GetSinglePackModel(PackType.rptEquip);
if (singPack == null) return;
@@ -111,6 +112,24 @@
PlayerLoginOKData();
}
}
+
+ private float time = 0f;
+ private void secondEvent()
+ {
+ if (!Wait)
+ {
+ time+= Time.deltaTime;
+ if (time >= 1.5f)
+ {
+ Wait = true;
+ }
+ }
+ else
+ {
+ time = 0f;
+ }
+ }
+
private void MountNumberPreservation()//鐢ㄦ潵瀵瑰潗楠戜釜鏁扮殑淇濆瓨
{
if (mountRedpoint.Count != 0)
--
Gitblit v1.8.0