Beispiel #1
0
 private void Update()
 {
     if (Input.GetKeyDown(KeyCode.Mouse0))
     {
         var pos = cam.ScreenToWorldPoint(Input.mousePosition);
         cursor.SetPos(pos);
     }
 }