Example #1
0
    private void Start()
    {
        ForestBuilder = GetComponent <ForestBuilder>();
        BuildAdjacentTiles(true);

        //Reposition controller above ground:
        Vector3 startPos = controller.transform.position;

        startPos.y = ForestBuilder.GetGroundHeight(0f, 0f) + 2f;
        controller.transform.position = startPos;
    }
Example #2
0
    void Start()
    {
        Instance = this;

        Builder = GetComponent <ForestBuilder>();
        BuildAdjacentTiles();

        // Reposition controller above ground
        Vector3 startPos = Controller.transform.position;

        startPos.y = Builder.GetGroundHeight(0, 0) + 2f;
        Controller.transform.position = startPos;
    }