Play Animation (blink opacity) on hit
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user