public void kill(bool explodes)
{
StopAllCoroutines();
Destroy(this.transform.GetComponent<Rigidbody>());
Destroy(this.transform.GetComponent<Collider>());
if (explodes)
{
StartCoroutine(scaleTo(new Vector3(0,0,0), 0.15f));
}else
{
Vector3 killPosition = new Vector3(this.transform.position.x, 0f, 0f);
float distance = Vector3.Distance(this.transform.position, killPosition);
this.moveTo(killPosition, distance/_killSpeed);
}
}