public void UpdateCooldown() { if ((this.m_startCooldownTimestamp != 0) && (this.m_maxCooldownTime != 0)) { uint num = (uint)(Singleton <FrameSynchr> .GetInstance().LogicFrameTick - this.m_startCooldownTimestamp); if (num >= this.m_maxCooldownTime) { this.m_startCooldownTimestamp = 0L; InBattleInputChat inputChat = Singleton <InBattleMsgMgr> .instance.m_InputChat; if (inputChat != null) { this.Clear(); inputChat.ReclyChatEntity(this); } } } }
public void UpdateCooldown() { if (!this.IsInCoolDown()) { return; } uint num = (uint)(Singleton <FrameSynchr> .GetInstance().LogicFrameTick - this.m_startCooldownTimestamp); if (num >= this.m_maxCooldownTime) { this.bInCD = false; this.m_startCooldownTimestamp = 0uL; InBattleInputChat inputChat = Singleton <InBattleMsgMgr> .instance.m_InputChat; if (inputChat != null) { this.Clear(); inputChat.ReclyChatEntity(this); } } }