blob: 30fc4cc6ca422a0a145df4d7eb701136e9e036a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
using Photon.Pun;
using TMPro;
using UnityEngine;
public class PlayerName : MonoBehaviour
{
private void Start()
{
GetComponentInParent<TextMeshProUGUI>().text = GetComponentInParent<PhotonView>().Owner.NickName;
}
}
|