RiftMayhem/Assets/Scripts/SetNickName.cs
Pedro Gomes 410e28e046 Player account update
- Added Player account data with list of characters
- Added character selection scene
- Loading and saving characters flow working with account names as filters
2024-07-17 11:59:51 +01:00

23 lines
567 B
C#

using Photon.Pun;
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);
}
}