示例#1
0
    bool HandModelIsValid(Transform wrist)
    {
        for (int i = 0; i < wrist.childCount; i++)
        {
            if (!BasicHelpers.IsCleanBranch(wrist.GetChild(i)))
            {
                return(false);
            }
        }

        return(true);
    }
示例#2
0
    bool HandModelIsValid(Transform wristOffset)
    {
        // Only wristOffset can have >1 children

        for (int i = 0; i < wristOffset.childCount; i++)
        {
            if (!BasicHelpers.IsCleanBranch(wristOffset.GetChild(i)))
            {
                return(false);
            }
        }

        return(true);
    }