Play Animation (blink opacity) on hit

This commit is contained in:
2023-10-17 12:04:43 +02:00
parent cd37cd4522
commit 899427d70c
5 changed files with 45 additions and 1 deletions
+1
View File
@@ -20,6 +20,7 @@ public class Arrow : MonoBehaviour
if (collision.CompareTag("Ennemy"))
{
collision.gameObject.GetComponent<Ennemy>().Life -= Damages;
collision.gameObject.GetComponent<Ennemy>().AnimateHit();
Destroy(gameObject);
}