private void BuildGroupName(StringBuilder sb, CharacterGroupCache group, CharacterCache characterCache) { if (group.parentGroup >= 0 && group.parentGroup < characterCache.groups.Length) { BuildGroupName(sb, characterCache.groups[group.parentGroup], characterCache); sb.Append(kNameSeparator); } sb.Append(group.order); }
internal void GroupVisibilityChanged(CharacterGroupCache gc) { if (!hasCharacter) { return; } var groupHash = GetCharacterGroupHash(m_StringBuilder, gc, character); m_State.lastGroupVisibility[groupHash] = gc.isVisible; }
private int GetCharacterGroupHash(StringBuilder sb, CharacterGroupCache characterGroup, CharacterCache characterCache) { sb.Clear(); BuildGroupName(sb, characterGroup, characterCache); return(Animator.StringToHash(sb.ToString())); }