RiftMayhem/Assets/Scripts/SetNickName.cs
2025-02-21 18:35:51 +00:00

22 lines
549 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class SetNickName : MonoBehaviour
{
[SerializeField] protected StringSharedField insertedName;
[SerializeField] protected Button button;
protected virtual void Start()
{
button.interactable = false;
}
public virtual void OnInputFieldChanged(string value)
{
insertedName.Value = value;
//PhotonNetwork.NickName = value;
button.interactable = !string.IsNullOrEmpty(value);
}
}