Example #1
0
 public void ReceiveAttack(EnemyController enemy)
 {
     cameraController.Shake(0.02f, 0.01f, 0.25f);
     vfxController.SpawnSwipeVFX(transform.position, Vector3.zero, Color.white);
     health--;
     uiController.SetHealth(health);
     if (health <= 0)
     {
         Die();
     }
     else
     {
         animator.SetTrigger("Damage");
         soundController.PlayTakeDamage();
     }
 }