Пример #1
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.CompareTag(TagsHashIDs.Player))
     {
         _playerLifecycle.TakeDamage(Damage);
         ToggleAttackColliderOff(); // Ensure we do not erroneously call TakeDamage incosistently
     }
 }
Пример #2
0
 private void DealDamage()
 {
     _playerLifecycle.TakeDamage(Damage);
 }