예제 #1
0
        // Position and rotate transform along the WorldAnchor which is the transform that ViewLoader lives
        // After modifying transform, create world anchor
        public void OnPlacementFinished(Vector3 position)
        {
            // Anchor the content in place
            FindObjectOfType <WorldAnchorHandler>().CreateWorldAnchor(position);

            // if its not Desktop platform then skip the next stage and go directly to solar system stage
            if (GalaxyExplorerManager.IsDesktop && flowManagerScript)
            {
                flowManagerScript.AdvanceStage();
            }
            else if (!GalaxyExplorerManager.IsDesktop && flowManagerScript)
            {
                flowManagerScript.JumpToStage(3);
            }
        }