public void battleMenuCancelMovement() { if (selectedUnit != null) { selectedUnit.StopCoroutine("MoveAlongPath"); actionLocked = false; state_selector = 1; selectedUnit.updatePosition(); } else { //Debug.Log("no unit asigned"); } }