Exemplo n.º 1
0
    void Start()
    {
        orbitCamera = GameCamera.GetComponent <OrbitCamera>();
        panCamera   = GameCamera.GetComponent <PanCamera>();

        numberOfCuts = LinesToCut.Count;
        UI_Manager.DisplayPlans(true);
        StillCutting = true;
        GameRuler.AssignManager(this);
        foreach (GameObject wood in AvailableWoodMaterial)
        {
            wood.SetActive(false);
        }
        AvailableWoodMaterial[currentPieceIndex].SetActive(true);
        currentBoardController = AvailableWoodMaterial[currentPieceIndex].GetComponent <BoardController>();
        UI_Manager.UpdateSelectionButtons(currentPieceIndex, AvailableWoodMaterial.Count);
        SetupForCutting();
    }