using TMPro; using UnityEngine; public class RS_InputField : RS_LabeledComponent { [SerializeField] private TMP_InputField input; [SerializeField] private Animator animator; public bool IsEmpty => input.text.Length == 0; protected override void OnUpdateLabel() { input.placeholder.GetComponent().text = label; } public void UpdateAnimator() { animator.SetBool("IsEmpty", IsEmpty); } public void Set(string text) { input.text = text; } public void Clear() => Set(string.Empty); }