cull(engine-cleanup): pass-9 cascade round 1 after NGUIText stub

This commit is contained in:
gamer147
2026-07-03 23:37:54 -04:00
parent 9183625ac2
commit 08c6bca58c
7 changed files with 0 additions and 102 deletions

View File

@@ -610,37 +610,4 @@ public class UIFont : MonoBehaviour
}
}
}
public BMSymbol MatchSymbol(string text, int offset, int textLength)
{
int count = mSymbols.Count;
if (count == 0)
{
return null;
}
textLength -= offset;
for (int i = 0; i < count; i++)
{
BMSymbol bMSymbol = mSymbols[i];
int length = bMSymbol.length;
if (length == 0 || textLength < length)
{
continue;
}
bool flag = true;
for (int j = 0; j < length; j++)
{
if (text[offset + j] != bMSymbol.sequence[j])
{
flag = false;
break;
}
}
if (flag && bMSymbol.Validate(atlas))
{
return bMSymbol;
}
}
return null;
}
}