GetTagNames() public method

public GetTagNames ( ) : string[]
return string[]
Ejemplo n.º 1
0
 public static string[] FindTagNames()
 {
     FindAstarPath();
     return(active != null?active.GetTagNames() : new string[1]
     {
         "There is no AstarPath component in the scene"
     });
 }
Ejemplo n.º 2
0
	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"
		};
	}
Ejemplo n.º 3
0
 public int TagFromString(string tag)
 {
     return(System.Array.IndexOf(_aStarPath.GetTagNames(), tag));
 }