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 GameObject selfPlayerBg; public GameObject rPlayerBg; 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; selfPlayerBg.SetActive(isShow); rPlayerBg.SetActive(!isShow); } }