Skip to content

Commit 942b76c

Browse files
committed
This does not compile. "private virtual void" for several methods is not valid -> "protected virtual void". And the IInputClickHandler.OnInputClicked is implemented as protected, but should be public, or the class does not implement the interface.
1 parent f25cedc commit 942b76c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Assets/HoloToolkit/SpatialMapping/Scripts/TapToPlace.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public class TapToPlace : MonoBehaviour, IInputClickHandler
4747
/// </summary>
4848
protected SpatialMappingManager spatialMappingManager;
4949

50-
private virtual void Start()
50+
protected virtual void Start()
5151
{
5252
// Make sure we have all the components in the scene we need.
5353
anchorManager = WorldAnchorManager.Instance;
@@ -83,7 +83,7 @@ private virtual void Start()
8383
}
8484
}
8585

86-
private virtual void Update()
86+
protected virtual void Update()
8787
{
8888
// If the user is in placing mode,
8989
// update the placement to match the user's gaze.
@@ -123,7 +123,7 @@ private virtual void Update()
123123
}
124124
}
125125

126-
protected virtual void OnInputClicked(InputEventData eventData)
126+
public virtual void OnInputClicked(InputEventData eventData)
127127
{
128128
// On each tap gesture, toggle whether the user is in placing mode.
129129
IsBeingPlaced = !IsBeingPlaced;

0 commit comments

Comments
 (0)