public void Die() { //player has been hit and will turn into a laborer //stop movement robotMovement.Die(); robotMovement.canMove = false; hoverBase.enabled = false; GetComponentInChildren <NavMeshAgent> ().enabled = false; //stop attacking robotAttack.enabled = false; //set cameras //set player to laborer robotLaborerControl.CallSetLaborer(); robotLaborerControl.isIdleLaborer = true; }