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
@@ -0,0 +1,18 @@
using UnityEngine;
using Unity.Netcode;
public class PitZone : NetworkBehaviour
{
private void OnTriggerEnter(Collider _other)
{
if (!IsServer) return;
PlayerHealth _playerHealth = _other.GetComponent<PlayerHealth>();
if (_playerHealth == null) return;
if(!RoundManager.Current.IsRoundActive) return;
RoundManager.Current.OnPlayerFellIntoPit(_playerHealth.OwnerClientId);
}
}