Added base Round Logic and base map with characters
This commit is contained in:
@@ -1,10 +1,17 @@
|
||||
using UnityEngine;
|
||||
using Unity.Netcode;
|
||||
using System.Collections;
|
||||
|
||||
public class PlayerUIController : NetworkBehaviour
|
||||
{
|
||||
public override void OnNetworkSpawn()
|
||||
[SerializeField] private Canvas hudCanvas;
|
||||
|
||||
public IEnumerator Start()
|
||||
{
|
||||
GetComponent<Canvas>().enabled = IsOwner;
|
||||
NetworkObject _netObj = GetComponentInParent<NetworkObject>();
|
||||
|
||||
yield return new WaitUntil(() => _netObj != null);
|
||||
|
||||
hudCanvas.enabled = _netObj.IsOwner;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user