Что я сдал
This commit is contained in:
1 parent
24b1157026
commit
a5665f0101
2838 files changed
+129953
-1304
No files matched your search
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using Code.GameplayServices;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Code.UI
|
||||
{
|
||||
public class PlayerNameSetter : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private TMP_InputField playerNameInput;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
playerNameInput.onSubmit.AddListener(PlayerScoreService.Instance.SetPlayerName);
|
||||
}
|
||||
|
||||
private void OnDestroy()
|
||||
{
|
||||
playerNameInput.onSubmit.RemoveListener(PlayerScoreService.Instance.SetPlayerName);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user