public static void setPanelToPool(UIMissionClearNoticePanel p) { if (instance != null) { if (p.isScarlet) { instance.pool2.Push(p); } else { instance.pool.Push(p); } } }
void OnDestroy() { instance = null; panel = null; panel2 = null; }