示例#1
0
 private void OnTriggerEnter2D(Collider2D other)
 {
     if (Meelee || PainInTheArse)
     {
         if (other.CompareTag("Player"))
         {
             PlayerAttack pa = _player.gameObject.GetComponent <PlayerAttack>();
             if (!pa._isInvincible)
             {
                 _mainCamera.Shake(CameraShakeMagnitude, CameraShakeDuration);
                 AttackAction.EnemyAttack(pa, this);
                 _playerController.GetHit();
             }
         }
     }
 }