| 1234567891011121314151617181920212223 |
- 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<Image>().sprite = avatar;
- this.transform.Find("Name").GetComponent<Text>().text = nickName;
- }
- public void Continue()
- {
- Destroy(this.gameObject);
- pKGameMode.UnbanBowReady();
- }
- }
|