Play Animation (blink opacity) on hit

This commit is contained in:
alexis committed 2023-10-17 12:04:43 +02:00
1 parent cd37cd4522
commit 899427d70c
5 files changed
+45 -1

No files matched your search

+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);
}