public bool RemoveTimer(ITimer timer) { if (null == timer) { Debug.Log("RemoveTimer is null !!"); return(false); } if (timer.AutoRecycled) { Debug.Log("AutoRecycled is timer !!"); return(false); } ITimer tmp = null; if (dict.TryGetValue(timer.ID, out tmp)) { timer.Clear(); dict.Remove(timer.ID); cachepool.Add(timer); return(true); } return(false); }