using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Hareket : MonoBehaviour
{
public float zAxis;//bu değeri değiştirerek kameraya olan uzaklığını ayarlıyacaksınız
void Update(){
Vector3 fingerPos = Input.mousePosition;
transform.position = fingerPos;
Vector3 posit2 = fingerPos;
posit.z = zAxis;
Vector3 realWorldPos = Camera.main.ScreenToWorldPoint(posit2);
transform.position = realWorldPos
}
}