2026-02-22 14:21:56 +01:00

15 lines
383 B
C#

using Photon.Pun;
using UnityEngine;
namespace ExitGames.Demos.DemoPunVoice
{
[RequireComponent(typeof(PhotonView))]
public class ChangeName : MonoBehaviour
{
private void Start()
{
PhotonView photonView = this.GetComponent<PhotonView>();
this.name = string.Format("ActorNumber {0}", photonView.OwnerActorNr);
}
}
}