示例#1
0
    public void leaveBuilding()
    {
        gameManager.GetUI().buildingOpenClose();
        buildingInsideOf.setPlayerEnteredBuilding(false);
        setBuildingIsInsideOf(null);
        hideBody(false);

        setMovementDisabled(false);
        playerInsideBuilding = false;
    }
示例#2
0
    public void goInsideBuilding(BuildingAttributes building)
    {
        setBuildingIsInsideOf(building);
        building.setPlayerEnteredBuilding(true);
        gameManager.GetUI().buildingOpen();
        hideBody(true);

        setMovementDisabled(true);
        playerInsideBuilding = true;
    }