public static void OpenWikiPage(SkillStateAction action) { HelpUrlAttribute attribute = CustomAttributeHelpers.GetAttribute <HelpUrlAttribute>(action.GetType()); if (attribute != null) { Application.OpenURL(attribute.get_Url()); return; } string topic = Labels.StripNamespace(action.ToString()); if (!EditorCommands.OpenWikiPage(topic)) { EditorCommands.SearchWikiHelp(action); } }
public static void SearchWikiHelp(SkillStateAction action) { string text = Labels.NicifyVariableName(Labels.StripNamespace(action.ToString())); Application.OpenURL("https://hutonggames.fogbugz.com/default.asp?ixWiki=1&pg=pgSearchWiki&qWiki=title:" + text); }