23 lines
527 B
C#
23 lines
527 B
C#
using Photon.Pun;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class SetNickName : MonoBehaviour
|
|
{
|
|
[SerializeField] private StringSharedField nick;
|
|
[SerializeField] private Button button;
|
|
|
|
private void Start()
|
|
{
|
|
button.interactable = false;
|
|
}
|
|
public void OnInputFieldChanged(string value)
|
|
{
|
|
nick.Value = value;
|
|
PhotonNetwork.NickName = value;
|
|
button.interactable = !string.IsNullOrEmpty(value);
|
|
}
|
|
}
|