Code cleanup.

This commit is contained in:
2023-02-10 15:50:49 +08:00
parent b437925f92
commit 1b1ed42a1b
7 changed files with 92 additions and 12 deletions

View File

@@ -45,7 +45,7 @@ namespace Cryville.Common.Unity.UI {
}
static MethodInfo _methodCreateFontAsset;
static object[] _paramsCreateFontAsset = new object[] { null, null, 90, 9, GlyphRenderMode.SDFAA, 1024, 1024, Type.Missing, Type.Missing };
static readonly object[] _paramsCreateFontAsset = new object[] { null, null, 90, 9, GlyphRenderMode.SDFAA, 1024, 1024, Type.Missing, Type.Missing };
static FontAsset CreateFontAsset(string path, int index) {
if (_methodCreateFontAsset == null) {
_methodCreateFontAsset = typeof(FontAsset).GetMethod(