using System.Collections; using System.Collections.Generic; using UnityEngine; public class Hiir1 : MonoBehaviour { // Start is called before the first frame update float KeskX=350; void Start() { } // Update is called once per frame void Update() { if(Input.mousePosition.xKeskX+20){this.transform.position+=new Vector3(0.05f, 0, 0);} } }