Exemplo n.º 1
0
 private void OnTriggerEnter(TriggerEvents.OnEnter obj)
 {
     if (obj.EnteringObject.IsPlayerControlled(out NwPlayer? player))
     {
         Log.Info("Player entered trigger: " + player.PlayerName);
     }
 }
Exemplo n.º 2
0
 private void OnTriggerEnter(TriggerEvents.OnEnter obj)
 {
     if (obj.EnteringObject is NwPlayer player)
     {
         Log.Info("Player entered trigger: " + player?.PlayerName);
     }
 }