using UnityEngine;
using System.Collections;
public class PlayerNameScript : MonoBehaviour {
string playerName = "SatyaDev";
// Use this for initialization
void Start () {
photonView = this.GetComponent<PhotonView>();
}
// Update is called once per frame
void Update () {
GetComponent<TextMesh> ().text = playerName;
}
}
using System.Collections;
public class PlayerNameScript : MonoBehaviour {
string playerName = "SatyaDev";
// Use this for initialization
void Start () {
photonView = this.GetComponent<PhotonView>();
}
// Update is called once per frame
void Update () {
GetComponent<TextMesh> ().text = playerName;
}
}
No comments:
Post a Comment