{"action":"created","issue":{"url":"https://api.github.com/repos/GaoKaiHaHa/MyUnityFrameWork/issues/21","repository_url":"https://api.github.com/repos/GaoKaiHaHa/MyUnityFrameWork","labels_url":"https://api.github.com/repos/GaoKaiHaHa/MyUnityFrameWork/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/GaoKaiHaHa/MyUnityFrameWork/issues/21/comments","events_url":"https://api.github.com/repos/GaoKaiHaHa/MyUnityFrameWork/issues/21/events","html_url":"https://github.com/GaoKaiHaHa/MyUnityFrameWork/issues/21","id":301725621,"number":21,"title":"Timer","user":{"login":"karsion","id":12959915,"avatar_url":"https://avatars2.githubusercontent.com/u/12959915?v=4","gravatar_id":"","url":"https://api.github.com/users/karsion","html_url":"https://github.com/karsion","followers_url":"https://api.github.com/users/karsion/followers","following_url":"https://api.github.com/users/karsion/following{/other_user}","gists_url":"https://api.github.com/users/karsion/gists{/gist_id}","starred_url":"https://api.github.com/users/karsion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karsion/subscriptions","organizations_url":"https://api.github.com/users/karsion/orgs","repos_url":"https://api.github.com/users/karsion/repos","events_url":"https://api.github.com/users/karsion/events{/privacy}","received_events_url":"https://api.github.com/users/karsion/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-02T10:46:00Z","updated_at":"2018-03-06T08:22:26Z","closed_at":null,"author_association":"NONE","body":"Timer Update 中一次性RemoveAll完结的Timer，避免多次Array.Copy"},"comment":{"url":"https://api.github.com/repos/GaoKaiHaHa/MyUnityFrameWork/issues/comments/370700697","html_url":"https://github.com/GaoKaiHaHa/MyUnityFrameWork/issues/21#issuecomment-370700697","issue_url":"https://api.github.com/repos/GaoKaiHaHa/MyUnityFrameWork/issues/21","id":370700697,"user":{"login":"karsion","id":12959915,"avatar_url":"https://avatars2.githubusercontent.com/u/12959915?v=4","gravatar_id":"","url":"https://api.github.com/users/karsion","html_url":"https://github.com/karsion","followers_url":"https://api.github.com/users/karsion/followers","following_url":"https://api.github.com/users/karsion/following{/other_user}","gists_url":"https://api.github.com/users/karsion/gists{/gist_id}","starred_url":"https://api.github.com/users/karsion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karsion/subscriptions","organizations_url":"https://api.github.com/users/karsion/orgs","repos_url":"https://api.github.com/users/karsion/repos","events_url":"https://api.github.com/users/karsion/events{/privacy}","received_events_url":"https://api.github.com/users/karsion/received_events","type":"User","site_admin":false},"created_at":"2018-03-06T08:22:26Z","updated_at":"2018-03-06T08:22:26Z","author_association":"NONE","body":"不客气，因为我看到一个Fork还是停留在Remove(item)的代码，比RemoveAt(int)还多了一次遍历。\r\n当前版本还建议弄一个临时变量bool isSomeTimerDone，当任意if (m_timers[i].m_isDone) 为true的时候，标志一下isSomeTimerDone = true，遍历完后判断isSomeTimerDone才执行RemoveAll，避免每次Update都遍历数组。（反编译mscorlib.dll看一下List<T>源码）"}}
{"actor":{"display_login":"karsion"}}