mirror of
https://github.com/FriendshipIsEpic/FiE-Game.git
synced 2024-11-26 07:18:00 +01:00
22 lines
441 B
C#
22 lines
441 B
C#
using Fie.Manager;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
namespace Fie.UI
|
|
{
|
|
public class FieLobbyNameEntryUIController : MonoBehaviour
|
|
{
|
|
[SerializeField]
|
|
private Text _nameEntryField;
|
|
|
|
public void Decide()
|
|
{
|
|
string myName = string.Empty;
|
|
if (_nameEntryField != null && _nameEntryField.text != string.Empty)
|
|
{
|
|
myName = _nameEntryField.text;
|
|
}
|
|
FieManagerBehaviour<FieUserManager>.I.SetMyName(myName);
|
|
}
|
|
}
|
|
}
|