Пример #1
0
 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);
 }
Пример #2
0
        internal void GroupVisibilityChanged(CharacterGroupCache gc)
        {
            if (!hasCharacter)
            {
                return;
            }

            var groupHash = GetCharacterGroupHash(m_StringBuilder, gc, character);

            m_State.lastGroupVisibility[groupHash] = gc.isVisible;
        }
Пример #3
0
 private int GetCharacterGroupHash(StringBuilder sb, CharacterGroupCache characterGroup, CharacterCache characterCache)
 {
     sb.Clear();
     BuildGroupName(sb, characterGroup, characterCache);
     return(Animator.StringToHash(sb.ToString()));
 }