Closed petrepa closed 4 years ago
Adding this to the update() of SpawnObjectOnPlane.cs made sure the touch didn't go through other gameObjects
if (EventSystem.current.IsPointerOverGameObject() || EventSystem.current.currentSelectedGameObject != null) {
return;
}
Solution found in the unity forums
When the user are pushing the task buttons, the SpawnObject-script thinks this is a valid time and place to move the chair. Should try to implement a way to avoid this.