Files
UltimateFishing/Assets/Scripts/Assembly-CSharp/TMPro/TMP_DigitValidator.cs
2026-02-21 16:45:37 +08:00

19 lines
273 B
C#

using System;
namespace TMPro
{
[Serializable]
public class TMP_DigitValidator : TMP_InputValidator
{
public override char Validate(ref string text, ref int pos, char ch)
{
if (ch >= '0' && ch <= '9')
{
pos++;
return ch;
}
return '\0';
}
}
}