Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Awake()
- {
- if(playerView.IsMine){
- playerCamera.SetActive(true);
- playerName.text = PhotonNetwork.NickName;
- playerName.color = Color.cyan;
- Debug.Log("My nick is:" + playerName.text);
- } else{
- playerName.text = playerView.Owner.NickName;
- playerName.color = Color.red;
- Debug.Log("My enemy is:" + playerName.text);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement