/// <summary>
 /// Awake is called when the script instance is being loaded.
 /// </summary>
 private void Awake()
 {
     this.WorldAnchor = AnchorHelpers.CreateWorldAnchor(this.gameObject.transform);
 }
示例#2
0
 /// <summary>
 /// Awake is called when the script instance is being loaded.
 /// </summary>
 private void Awake()
 {
     this.WorldAnchor = AnchorHelpers.CreateWorldAnchor(this.gameObject.transform);
     this.gameObject.transform.SetParent(this.WorldAnchor.transform, true);
 }