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
@@ -28,6 +28,7 @@ public class Sword : MonoBehaviour
if (collision.CompareTag("Ennemy") && collision.gameObject != null)
{
collision.GetComponent<Ennemy>().Life -= Damages;
collision.gameObject.GetComponent<Ennemy>().AnimateHit();
}
}
}