Ejemplo n.º 1
0
 public void RecievePunchFromRight(bool punchFromRight)
 {
     Debug.Log("Player punched");
     playerSFX.PlayDamageTakenSound();
     playerGraphicsController.FlashSprite();
     playerGraphicsController.TakeDamage();
     health--;
     if (health == 0)
     {
         playerGraphicsController.Die();
         playerSFX.PlayGameOverSound();
         return;
     }
     StartCoroutine("PauseWaitResume", 0.2f);
     cameraController.StartShake();
 }