public void leaveBuilding() { if (buildingInsideOf) { //Debug.Log("left building"); buildingInsideOf.removeCitizenFromInsideBuilding(this); setBuildingIsInsideOf(null); transform.GetChild(0).gameObject.SetActive(true); isInsideBuilding = false; } else { stopMovement(); } }