40 lines
825 B
C#
40 lines
825 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
namespace MMO
|
|
{
|
|
public class MMOGuideInput : MMOGuideStep
|
|
{
|
|
public string InputStr => mIptUsername.text;
|
|
|
|
[SerializeField] InputField mIptUsername;
|
|
|
|
private void Awake()
|
|
{
|
|
mIptUsername.onEndEdit.AddListener(OnInputEnd);
|
|
}
|
|
|
|
private void OnEnable()
|
|
{
|
|
mIptUsername.gameObject.SetActive(false);
|
|
|
|
Invoke("DelayShow", 0.3f);
|
|
}
|
|
|
|
private void DelayShow()
|
|
{
|
|
mIptUsername.gameObject.SetActive(true);
|
|
}
|
|
|
|
private void OnInputEnd(string pStr)
|
|
{
|
|
if (!string.IsNullOrEmpty(pStr))
|
|
{
|
|
DelExcute?.Invoke();
|
|
}
|
|
}
|
|
}
|
|
}
|