Exemplo n.º 1
0
        /// <summary>
        ///     オブジェクトの有効無効を設定します。
        /// </summary>
        /// <param name="enabled"></param>
        public void Initialize(bool enabled, string anchorId = null,
                               SettingPointAnchor anchorObj  = null, IDictionary <string, string> appProperties = null)
        {
            try
            {
                if (anchorId == null || anchorObj == null || appProperties == null)
                {
                    Debug.LogWarning("null reference the base point anchor information.");
                    return;
                }

                basePointAnchorId      = anchorId;
                CurrentAnchorId        = basePointAnchorId;
                settingPointAnchor     = anchorObj;
                basePointAppProperties = appProperties;

                Dialog.OpenDialog("Set Destination.",
                                  "Please set the destination.\n * Selecting 'Set Destination', set destination and title.\n * Selecting 'Create Next Point', add transit point.",
                                  new[] { "Ok" }, new[]
                {
                    new UnityAction(() =>
                    {
                        Instruction?.SetActive(enabled);
                        AnchorCollection?.SetActive(enabled);
                        Menu.ChangeStatus(BaseMenu.MODE_INITIALIZE);
                    })
                });
            }
            catch (Exception e)
            {
                Debug.Log(e);
                throw;
            }
        }
Exemplo n.º 2
0
        /// <summary>
        ///     オブジェクトの有効無効を設定します。
        /// </summary>
        /// <param name="enabled"></param>
        public void Initialize(bool enabled, string anchorId = null,
                               SettingPointAnchor anchorObj  = null, IDictionary <string, string> appProperties = null)
        {
            try
            {
                if (anchorId == null || anchorObj == null || appProperties == null)
                {
                    Debug.LogWarning("null reference the base point anchor information.");
                    return;
                }

                AnchorModuleProxy.Instance.SetASACallBackManager(this);

                Dialog.OpenDialog("Way Destination.",
                                  "Please select the destination.\nWhen you select a destination, the application searches the anchors and places Spatial Anchor. When you approach this Spatial Anchor, it will automatically search for the next anchor . Finally, you reach the destination, you're done.",
                                  new[] { "Ok" }, new[]