/// <summary> /// Removes an element from the hitbox list. /// </summary> private void OnHitboxListRemove(ReorderableList list) { MeleeWeaponInspector.OnHitboxListRemove(target as IMeleeWeaponPerspectiveProperties, list, SelectedHitboxIndexKey); }
/// <summary> /// Selects an element from the hitbox list. /// </summary> private void OnHitboxListSelect(ReorderableList list) { MeleeWeaponInspector.OnHitboxListSelect(ref list, SelectedHitboxIndexKey); }
/// <summary> /// Draws the selected hitbox element. /// </summary> /// <param name="list"></param> private void DrawSelectedHitbox(int index) { var hitboxProperty = PropertyFromName("m_Hitboxes").GetArrayElementAtIndex(index); MeleeWeaponInspector.DrawSelectedHitbox(target as IMeleeWeaponPerspectiveProperties, hitboxProperty); }