From b5651b96bb1bfd53341af7fbe4cb46db54dee58c Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期四, 27 十二月 2018 14:40:47 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
---
System/Treasure/FunctionUnlockFlyObject.cs | 27 ++++++++++++++++-----------
1 files changed, 16 insertions(+), 11 deletions(-)
diff --git a/System/Treasure/FunctionUnlockFlyObject.cs b/System/Treasure/FunctionUnlockFlyObject.cs
index 9bfc56c..3fbcac7 100644
--- a/System/Treasure/FunctionUnlockFlyObject.cs
+++ b/System/Treasure/FunctionUnlockFlyObject.cs
@@ -127,6 +127,9 @@
onReached();
onReached = null;
}
+
+ StopTreasureShow();
+
GameObject.Destroy(this.gameObject);
return;
}
@@ -189,27 +192,29 @@
functionUnLockShowEndEvent(m_UnLockType);
}
- switch (m_UnLockType)
- {
- case FunctionUnlockType.Treasure:
- case FunctionUnlockType.TreasureSkill:
- case FunctionUnlockType.TreasureFunc:
- UI3DTreasureExhibition.Instance.StopShow();
- break;
- case FunctionUnlockType.Normal:
- break;
- }
+ StopTreasureShow();
GameObject.Destroy(this.gameObject);
}
catch (Exception ex)
{
-
+ DebugEx.Log(ex.Message);
}
}
}
+ void StopTreasureShow()
+ {
+ switch (m_UnLockType)
+ {
+ case FunctionUnlockType.Treasure:
+ case FunctionUnlockType.TreasureSkill:
+ case FunctionUnlockType.TreasureFunc:
+ UI3DTreasureExhibition.Instance.StopShow();
+ break;
+ }
+ }
}
}
--
Gitblit v1.8.0