﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class SceneRenderArea
{
    private float _screenWidth;

    public float MinX { get; private set; }
    public float MaxX { get; private set; }

    public SceneRenderArea(float screenWidth)
    {
        _screenWidth = screenWidth;
    }

    public void UpdateRenderArea(Vector3 playerPosition)
    {
        MinX = playerPosition.x - _screenWidth;
        MaxX = playerPosition.x + _screenWidth;
    }
}
