12 lines
304 B
C#
12 lines
304 B
C#
using Photon.Pun;
|
|
using UnityEngine;
|
|
|
|
[RequireComponent(typeof(PhotonView))]
|
|
public class ChangeName : MonoBehaviour
|
|
{
|
|
private void Start()
|
|
{
|
|
PhotonView photonView = this.GetComponent<PhotonView>();
|
|
this.name = string.Format("ActorNumber {0}", photonView.OwnerActorNr);
|
|
}
|
|
} |