private void GameEvents_onCharacterTakenDamage(UserTakeDamage data)
 {
     if (!_activePlayers.ContainsKey(data.UserId))
     {
         return;
     }
     _activePlayers[data.UserId].Health.TakeDamage(data.Damage);
 }
Beispiel #2
0
 private void NetworkEvents_onCharacterTakeDamage(UserTakeDamage data)
 {
     _manager.Socket.Emit("take_damage_character", data);
 }
 public static void CharacterTakenDamage(UserTakeDamage data)
 {
     onCharacterTakenDamage?.Invoke(data);
 }