public static UIFont LoadFont(UIFontType t) { if (!FindManager()) { return(null); } UIFont font = Inst[t]; if (null != font) { return(font); } GameObject obj = Resources.Load("Font/" + t.ToString(), typeof(GameObject)) as GameObject; font = obj.GetComponent <UIFont>(); obj = null; Resources.UnloadUnusedAssets(); Inst.mFontList.Add((byte)t, font); return(font); }