/// <summary> /// Invokes a <see cref="UpdateEnahancementDelegate" /> delegate to update the neccessary fields /// for the given change. /// </summary> /// <param name="updateUnit">the <see cref="Unit" /> to update</param> /// <param name="changeType">the change type</param> /// <param name="statsCollection">the enhancements collection</param> internal static void CommitChange(Unit updateUnit, ModifierType changeType, ModifierCollection statsCollection) { m_updateDelegates[changeType].Invoke(updateUnit, changeType, statsCollection); }