We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
以下是改进的代码 就这水平就别出来丢人了
private readonly List<Event> m_EventsFuckJiangYin = new List<Event>(); /// <summary> /// 事件池轮询。 /// </summary> /// <param name="elapseSeconds">逻辑流逝时间,以秒为单位。</param> /// <param name="realElapseSeconds">真实流逝时间,以秒为单位。</param> public void Update(float elapseSeconds, float realElapseSeconds) { lock (m_Events) { m_EventsFuckJiangYin.AddRange(m_Events); m_Events.Clear(); } try { for (int i = 0; i < m_EventsFuckJiangYin.Count; i++) { Event eventNode = m_EventsFuckJiangYin[i]; HandleEvent(eventNode.Sender, eventNode.EventArgs); ReferencePool.Release(eventNode); } } finally { m_EventsFuckJiangYin.Clear(); } }
The text was updated successfully, but these errors were encountered:
/// <summary> /// 事件池轮询。 /// </summary> /// <param name="elapseSeconds">逻辑流逝时间,以秒为单位。</param> /// <param name="realElapseSeconds">真实流逝时间,以秒为单位。</param> public void Update(float elapseSeconds, float realElapseSeconds) { lock (m_Events) { while (m_Events.Count > 0) { Event eventNode = m_Events.Dequeue(); HandleEvent(eventNode.Sender, eventNode.EventArgs); ReferencePool.Release(eventNode); } } }
这是原来的代码,你代码看都没看过,就在这喷,这世上就是SB多。
Sorry, something went wrong.
菜就多练、谦虚点啥意识
对啊,对于菜鸟我从来就不客气。
No branches or pull requests
以下是改进的代码
就这水平就别出来丢人了
The text was updated successfully, but these errors were encountered: