using System.Collections; using System.Collections.Generic; using Common; using TMPro; using UnityEngine; public class SettleItem : MonoBehaviour { public TextMeshProUGUI PlayerName; public TextMeshProUGUI Score; public TextMeshProUGUI Ranking; public TextMeshProUGUI Title; public State UIstate; public void Init(string name, int score, int ranking, string title, bool isShow) { PlayerName.text = name; Score.text = score.ToString(); Ranking.text = (ranking).ToString(); Title.text = title; if (isShow) { UIstate.StateChange(1); } else { UIstate.StateChange(0); } } }