Skip to content

Commit d8ce4db

Browse files
Merge pull request #1056 from StephenHodgson/MRTK-SharingFixes
Fixes issue with Start method inheritance.
2 parents ca8c892 + 49acb8a commit d8ce4db

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Assets/HoloToolkit/Sharing/Scripts/Utilities/SharingWorldAnchorManager.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,10 @@ public class SharingWorldAnchorManager : WorldAnchorManager
6262

6363
#region Unity Methods
6464

65-
private void Start()
65+
protected override void Start()
6666
{
67+
base.Start();
68+
6769
if (SharingStage.Instance != null)
6870
{
6971
ShowDetailedLogs = SharingStage.Instance.ShowDetailedLogs;

Assets/HoloToolkit/Utilities/Scripts/WorldAnchorManager.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
namespace HoloToolkit.Unity
1818
{
1919
/// <summary>
20-
/// Wrapper around world anchor store to streamline some of the persistence api busy work.
20+
/// Wrapper around world anchor store to streamline some of the persistence API busy work.
2121
/// </summary>
2222
public class WorldAnchorManager : Singleton<WorldAnchorManager>
2323
{
@@ -91,6 +91,10 @@ protected override void Awake()
9191
{
9292
base.Awake();
9393
AnchorStore = null;
94+
}
95+
96+
protected virtual void Start()
97+
{
9498
WorldAnchorStore.GetAsync(AnchorStoreReady);
9599
}
96100

0 commit comments

Comments
 (0)