clean up enemy
This commit is contained in:
parent
1e575d842c
commit
6abff695cb
@ -40,7 +40,6 @@ public class Enemy : MonoBehaviour
|
||||
public void IsShot(float distance, float turretDamage)
|
||||
{
|
||||
float destroyDelay = Mathf.Sqrt(distance)/(500/5);
|
||||
Debug.Log(distance+" : "+destroyDelay);
|
||||
_health -= turretDamage;
|
||||
if (_health <= 0) StartCoroutine(Destroy(destroyDelay));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user