public static void RecycleMessage(IBaseMessage r) { if (null == r) { Debug.LogErrorFormat("On recycle IBaseMessage is null !!! "); return; } r.Clear(); msgPool.Enqueue(r); }