private void Start()
    {
        TG = gameController.GetComponent <NewProcedualTileGen>();

        Width  = (TG.Chunk_Size / 2);
        Height = Width / 1.0f;
        Depth  = Height / 1.5f;

        transform.position = new Vector3(Width, Height, -Depth);
    }
Esempio n. 2
0
    private void Start()
    {
        TG = gameController.GetComponent <NewProcedualTileGen>();

        Width  = (TG.Chunk_Size / 2) - 0.5f;
        Depth  = (TG.Chunk_Size / 2) - 0.5f;
        Height = 10;

        transform.position = new Vector3(Width, Height, Depth);
        GetComponent <Camera>().orthographicSize = Width + 0.5f;
    }