public void leaveBuilding() { gameManager.GetUI().buildingOpenClose(); buildingInsideOf.setPlayerEnteredBuilding(false); setBuildingIsInsideOf(null); hideBody(false); setMovementDisabled(false); playerInsideBuilding = false; }
public void goInsideBuilding(BuildingAttributes building) { setBuildingIsInsideOf(building); building.setPlayerEnteredBuilding(true); gameManager.GetUI().buildingOpen(); hideBody(true); setMovementDisabled(true); playerInsideBuilding = true; }