/// <summary> /// Initializes the AnimatorItemSetData. /// </summary> /// <param name="parentCollection">The AnimatorItemCollectionData that represents the group.</param> /// <param name="itemType">The ItemType that represents the group.</param> public virtual void Initialize(AnimatorItemCollectionData parentCollection, ItemType itemType) { for (int i = 0; i < m_Groups.Length; ++i) { m_Groups[i].Initialize(parentCollection, itemType, null); } }
/// <summary> /// Initializes the AnimatorItemAbilitySetData. /// </summary> /// <param name="parentCollection">The AnimatorItemCollectionData that represents the set.</param> /// <param name="itemType">The ItemType that represents the set.</param> public override void Initialize(AnimatorItemCollectionData parentCollection, ItemType itemType) { for (int i = 0; i < m_Groups.Length; ++i) { m_Groups[i].Initialize(parentCollection, itemType, m_Ability); } }
/// <summary> /// Initializes the AnimatorItemGroupData. /// </summary> /// <param name="parentCollection">The AnimatorItemCollectionData that represents the group.</param> /// <param name="itemType">The ItemType that represents the group.</param> /// <param name="ability">The Ability that represents the group.</param> public void Initialize(AnimatorItemCollectionData parentCollection, ItemType itemType, Ability ability) { m_ParentCollection = parentCollection; for (int i = 0; i < m_States.Length; ++i) { m_States[i].ItemType = itemType; m_States[i].Ability = ability; } }