Что я сдал
This commit is contained in:
1 parent
24b1157026
commit
a5665f0101
2838 files changed
+129953
-1304
No files matched your search
@@ -0,0 +1,20 @@
|
||||
using Code.GameplayServices;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Code.UI
|
||||
{
|
||||
public class ScoreDataView : MonoBehaviour
|
||||
{
|
||||
private ScoreData _scoreData;
|
||||
[SerializeField] private TMP_Text playerName;
|
||||
[SerializeField] private TMP_Text score;
|
||||
|
||||
public void SetScoreData(ScoreData scoreData)
|
||||
{
|
||||
_scoreData = scoreData;
|
||||
score.text = _scoreData.score.ToString();
|
||||
playerName.text = _scoreData.name;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user