Pathfinding.AstarUpdateChecker.GetURL C# (CSharp) Method

GetURL() public static method

public static GetURL ( string tag ) : string
tag string
return string
        public static string GetURL(string tag)
        {
            RefreshServerMessage ();
            string url;
            astarServerData.TryGetValue ("URL:"+tag,out url);
            return url ?? "";
        }

Usage Example

Ejemplo n.º 1
0
        void DrawTagField()
        {
            if (PropertyField("modifyTag"))
            {
                var tagValue = FindProperty("setTag");
                EditorGUI.indentLevel++;
                EditorGUI.showMixedValue = tagValue.hasMultipleDifferentValues;
                EditorGUI.BeginChangeCheck();
                var newTag =
                    EditorGUILayoutx.TagField("Tag Value", tagValue.intValue, () => AstarPathEditor.EditTags());
                if (EditorGUI.EndChangeCheck())
                {
                    tagValue.intValue = newTag;
                }

                if (GUILayout.Button(
                        "Tags can be used to restrict which units can walk on what ground. Click here for more info",
                        "HelpBox"))
                {
                    Application.OpenURL(AstarUpdateChecker.GetURL("tags"));
                }

                EditorGUI.indentLevel--;
            }
        }
All Usage Examples Of Pathfinding.AstarUpdateChecker::GetURL