Added base Round Logic and base map with characters
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user