clean up enemy

This commit is contained in:
louishorlaville 2022-05-15 13:50:27 -04:00
parent 1e575d842c
commit 6abff695cb

View File

@ -40,7 +40,6 @@ public class Enemy : MonoBehaviour
public void IsShot(float distance, float turretDamage) public void IsShot(float distance, float turretDamage)
{ {
float destroyDelay = Mathf.Sqrt(distance)/(500/5); float destroyDelay = Mathf.Sqrt(distance)/(500/5);
Debug.Log(distance+" : "+destroyDelay);
_health -= turretDamage; _health -= turretDamage;
if (_health <= 0) StartCoroutine(Destroy(destroyDelay)); if (_health <= 0) StartCoroutine(Destroy(destroyDelay));
} }