| | |
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public class StatusMgr : SingletonMonobehaviour<StatusMgr>
|
| | |
|
| | | {
|
| | | public static event UnityAction<int> OnGainStatus;
|
| | | public static event UnityAction<float> OnGainCantCastSkillStatus;
|
| | | public static event UnityAction OnReleaseCantCastSkillStatus;
|
| | |
|
| | | private Dictionary<uint, List<Status_Base>> m_StatusDict = null;
|
| | | private List<Status_Base> m_AllStatus = null;
|
| | |
| | | OnGainStatus(h0605.SkillID);
|
| | | }
|
| | | }
|
| | |
|
| | | if (!_status.CanUseSkill())
|
| | | {
|
| | | if (OnGainCantCastSkillStatus != null)
|
| | | {
|
| | | OnGainCantCastSkillStatus(h0605.LastTime * Constants.F_DELTA);
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | return;
|
| | | }
|
| | |
|
| | | if (!_status.CanUseSkill())
|
| | | {
|
| | | if (_actor is GA_Hero)
|
| | | {
|
| | | if (OnReleaseCantCastSkillStatus != null)
|
| | | {
|
| | | OnReleaseCantCastSkillStatus();
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | _status.UnInit(h0606.ObjID, h0606.BuffType);
|
| | |
|
| | | if (m_AllStatus.Contains(_status))
|