Skip to content

Commit

Permalink
fix(TrainingWheels): properly disable
Browse files Browse the repository at this point in the history
Turns out, disabled gameobjects are re-enabled by SceneBuilder. Training
Wheels therefore had to be completely removed from TableRepositionParent
to be properly disabled.
  • Loading branch information
LarsSelbekk committed Apr 11, 2024
1 parent 13dac33 commit 03ec39a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 68 deletions.
67 changes: 0 additions & 67 deletions Assets/Pool Table/TablePositionParent.prefab

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Assets/Scripts/Components/HoverOnlyInteractable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public class HoverOnlyInteractable : MonoBehaviour, IXRHoverInteractable

private void Awake()
{
// TODO: disable when there's none found/not XR
_xrInteractionManager = GameObject.FindWithTag("XRInteractionManager").GetComponent<XRInteractionManager>();
}

Expand Down
2 changes: 1 addition & 1 deletion Assets/Scripts/Components/SceneBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -427,4 +427,4 @@ private void PlaceWallArt()
return null;
}
}
}
}

0 comments on commit 03ec39a

Please sign in to comment.