11 lines
200 B
C#
11 lines
200 B
C#
using UnityEngine;
|
|
using Unity.Netcode;
|
|
|
|
public class PlayerUIController : NetworkBehaviour
|
|
{
|
|
public override void OnNetworkSpawn()
|
|
{
|
|
GetComponent<Canvas>().enabled = IsOwner;
|
|
}
|
|
}
|