This commit is contained in:
2024-04-27 14:31:39 +02:00
parent 54378a55ec
commit 8c5690e351
2 changed files with 2 additions and 1 deletions

View File

@@ -23,7 +23,7 @@ public class Ingredient : MonoBehaviour
if (isMoving)
{
Vector3 mousePosition = Camera.main.ScreenToWorldPoint(Input.mousePosition);
transform.position = new Vector3 (mousePosition.x, mousePosition.y, transform.position.z);
transform.position = mousePosition;
}
}