2022-06-29 14:45:17 +03:00

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);
}
}