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

public class rangeLogic : MonoBehaviour
{
    public Transform cameraTransform;
    public float distance = 1.0f;

    void Update()
    {
        // Ensure the camera transform reference is set
        if (cameraTransform == null)
        {
            Debug.LogError("Camera Transform is not set in the inspector!");
            return;
        }

        // Calculate the position at the desired distance from the camera
        //Vector3 targetPosition = cameraTransform.position + cameraTransform.forward * distance;

        // Update the GameObject's position
        //transform.position = targetPosition;

        








    }
}
