using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class PKGameReadyView : MonoBehaviour { PKGameMode pKGameMode; void Start() { pKGameMode = (PKGameMode) GameMgr.ins.gameMode; (Sprite avatar, string nickName) = RoleMgr.GetRoleInfo(PKGameMode.playerRoleIDs[pKGameMode.currentPlayerID - 1]); this.transform.Find("Avatar/Sprite").GetComponent().sprite = avatar; this.transform.Find("Name").GetComponent().text = nickName; } public void Continue() { Destroy(this.gameObject); pKGameMode.UnbanBowReady(); } }