You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
674 B
32 lines
674 B
using Photon.Realtime;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.Runtime.InteropServices.ComTypes;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class ReadyPlayer : MonoBehaviour {
|
|
|
|
public Text playerNameText;
|
|
public Image readyFlagImage;
|
|
public GameObject readyCheckmark;
|
|
|
|
public Player Player {
|
|
get => player;
|
|
set {
|
|
player = value;
|
|
|
|
string playerName = player.NickName;
|
|
playerNameText.text = playerName;
|
|
|
|
Material material = ColorManager.GetUiBy(player.ActorNumber);
|
|
readyFlagImage.material = material;
|
|
}
|
|
}
|
|
private Player player;
|
|
|
|
public void SetReady(bool ready) {
|
|
readyCheckmark.SetActive(ready);
|
|
}
|
|
|
|
}
|
|
|