ExtensionMethods.GetChildren C# (CSharp) 메소드

GetChildren() 공개 정적인 메소드

public static GetChildren ( this go ) : List
go this
리턴 List
	public static List<GameObject> GetChildren(this GameObject go)
	{

		List<GameObject> children = new List<GameObject>();

		foreach (Transform tran in go.transform)
		{

			children.Add(tran.gameObject);

		}

		return children;

	}
ExtensionMethods