public void FieldNumLimitAdd() { InputField inputField = transform.GetComponentInChildren <InputField>(); string fieldType = transform.name; int currentNum = GetInputFieldNum(inputField); currentNum += 1; SetInputFieldNum(inputField, currentNum); myUI.FieldNumLimitSet(fieldType, currentNum); }