From 69ade7bccc9a7990fde3cb2284f32b16005d8ce7 Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期六, 30 三月 2019 15:45:57 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
---
System/MainInterfacePanel/IsShowXpButton.cs | 36 ++++++++++++++++++++++--------------
1 files changed, 22 insertions(+), 14 deletions(-)
diff --git a/System/MainInterfacePanel/IsShowXpButton.cs b/System/MainInterfacePanel/IsShowXpButton.cs
index 85f0603..c3ad3df 100644
--- a/System/MainInterfacePanel/IsShowXpButton.cs
+++ b/System/MainInterfacePanel/IsShowXpButton.cs
@@ -9,9 +9,11 @@
using System.Collections.Generic;
using System;
//鏄惁鏄剧ずXP
-namespace Snxxz.UI {
+namespace Snxxz.UI
+{
- public class IsShowXpButton:MonoBehaviour {
+ public class IsShowXpButton : MonoBehaviour
+ {
[SerializeField] UIEffect m_UiEffect;
List<int> ProhibitedToRelease = new List<int>();
PlayerMainDate m_MainModel;
@@ -41,19 +43,25 @@
return;
}
_XpSkill = SkillConfig.Get(SkillID);
- Skill _skill = PlayerDatas.Instance.hero.SkillMgr.Get(_XpSkill.SkillID);
- if (_skill.IsValid())
+ if (_XpSkill != null)
{
- if (!m_UiEffect.IsPlaying)
+ if (PlayerDatas.Instance.hero != null)
{
- m_UiEffect.Play();
- }
- }
- else
- {
- if (m_UiEffect.IsPlaying)
- {
- m_UiEffect.Stop();
+ Skill _skill = PlayerDatas.Instance.hero.SkillMgr.Get(_XpSkill.SkillID);
+ if (_skill.IsValid())
+ {
+ if (!m_UiEffect.IsPlaying)
+ {
+ m_UiEffect.Play();
+ }
+ }
+ else
+ {
+ if (m_UiEffect.IsPlaying)
+ {
+ m_UiEffect.Stop();
+ }
+ }
}
}
}
@@ -107,7 +115,7 @@
}
-
+
private void StorageList()
{
if (ProhibitedToRelease.Count <= 0)
--
Gitblit v1.8.0