36 lines
No EOL
708 B
C#
36 lines
No EOL
708 B
C#
using System;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
|
|
namespace _Network.Auth
|
|
{
|
|
public class AuthInputField : MonoBehaviour
|
|
{
|
|
public TMP_InputField InputField
|
|
{
|
|
get { return _inputField; }
|
|
}
|
|
|
|
private TMP_InputField _inputField;
|
|
|
|
[SerializeField] private TMP_Text errorText;
|
|
|
|
|
|
private void Awake()
|
|
{
|
|
_inputField = GetComponent<TMP_InputField>();
|
|
}
|
|
|
|
public void Error(bool show)
|
|
{
|
|
if (show)
|
|
{
|
|
errorText.gameObject.SetActive(true);
|
|
}
|
|
else
|
|
{
|
|
errorText.gameObject.SetActive(false);
|
|
}
|
|
}
|
|
}
|
|
} |