cull(engine-cleanup): pass-9 cascade round 1 after NGUIText stub
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user