Exemple #1
0
    private static bool IsChild(Transform target, Transform root)
    {
        List <Transform> transList = LinqUtil.ToList(root.GetComponentsInChildren <Transform>());

        if (transList.Contains(target))
        {
            return(true);
        }
        return(false);
    }