This commit is contained in:
2024-04-29 10:46:30 +02:00
parent 8c5690e351
commit b1848a9d5c

View File

@@ -17,13 +17,12 @@ public class Ingredient : MonoBehaviour
DefaultPosition = transform.position;
}
// Update is called once per frame
void Update()
{
if (isMoving)
{
Vector3 mousePosition = Camera.main.ScreenToWorldPoint(Input.mousePosition);
transform.position = mousePosition;
transform.position = new Vector3(mousePosition.x, mousePosition.y, transform.position.z);
}
}