public static string[] FindTagNames() { FindAstarPath(); return(active != null?active.GetTagNames() : new string[1] { "There is no AstarPath component in the scene" }); }
public static string[] FindTagNames() { if (AstarPath.active != null) { return AstarPath.active.GetTagNames(); } AstarPath astarPath = UnityEngine.Object.FindObjectOfType<AstarPath>(); if (astarPath != null) { AstarPath.active = astarPath; return astarPath.GetTagNames(); } return new string[] { "There is no AstarPath component in the scene" }; }
public int TagFromString(string tag) { return(System.Array.IndexOf(_aStarPath.GetTagNames(), tag)); }