nah, wtf
This commit is contained in:
@@ -143,6 +143,7 @@ public class Cooking : MonoBehaviour
|
|||||||
|
|
||||||
// Keep track of ingredients going on and off the cooker.
|
// Keep track of ingredients going on and off the cooker.
|
||||||
List <GameObject> currentCollisions = new List <GameObject>();
|
List <GameObject> currentCollisions = new List <GameObject>();
|
||||||
|
|
||||||
private void OnTriggerEnter2D(Collider2D other) {
|
private void OnTriggerEnter2D(Collider2D other) {
|
||||||
currentCollisions.Add (other.gameObject);
|
currentCollisions.Add (other.gameObject);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ public class Ingredient : MonoBehaviour
|
|||||||
if (isMoving)
|
if (isMoving)
|
||||||
{
|
{
|
||||||
Vector3 mousePosition = Camera.main.ScreenToWorldPoint(Input.mousePosition);
|
Vector3 mousePosition = Camera.main.ScreenToWorldPoint(Input.mousePosition);
|
||||||
transform.position = new Vector3 (mousePosition.x, mousePosition.y, transform.position.z);
|
transform.position = mousePosition;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user