Пример #1
0
 void Awake()
 {
     GluingPieces                  = new List <GameObject>();
     glue.enabled                  = false;
     selectedPieceIndex            = 0;
     selectedPiecePreviousPosition = Vector3.zero;
     cameraTransform               = GameCamera.transform;
     orbitCameraControl            = GameCamera.GetComponent <OrbitCamera>();
     panCameraControl              = GameCamera.GetComponent <PanCamera>();
     distancePadding               = 2.2f;
 }
Пример #2
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();
    }
Пример #3
0
 void Awake()
 {
     Instance          = this;
     Unit.OnTurnStart += OnTurnStart;
 }