Added base Round Logic and base map with characters

This commit is contained in:
2026-06-19 17:55:30 +03:00
parent 86d59db726
commit f5c79c7241
117 changed files with 14744 additions and 128 deletions
@@ -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;
}
}