Fix
This commit is contained in:
@@ -17,13 +17,12 @@ public class Ingredient : MonoBehaviour
|
|||||||
DefaultPosition = transform.position;
|
DefaultPosition = transform.position;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update is called once per frame
|
|
||||||
void Update()
|
void Update()
|
||||||
{
|
{
|
||||||
if (isMoving)
|
if (isMoving)
|
||||||
{
|
{
|
||||||
Vector3 mousePosition = Camera.main.ScreenToWorldPoint(Input.mousePosition);
|
Vector3 mousePosition = Camera.main.ScreenToWorldPoint(Input.mousePosition);
|
||||||
transform.position = mousePosition;
|
transform.position = new Vector3(mousePosition.x, mousePosition.y, transform.position.z);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user