//============================================================================================ /** * @brief * *********************************************************************************************/ public void AddDefenition(string a_name, float a_timing, EMotionModType a_motionType) { MotionPreset newDefenition = new MotionPreset(a_name, a_timing, a_motionType); m_defenitions.Add(newDefenition); EditorUtility.SetDirty(this); }
//============================================================================================ /** * @brief * *********************************************************************************************/ public MotionSection(int a_id, MotionSection a_copy, float a_endTime) { MotionSectionId = a_id; MotionPresetId = a_copy.MotionPresetId; ModType = a_copy.ModType; SmoothType = a_copy.SmoothType; RawModValue = a_copy.RawModValue; UsePresets = a_copy.UsePresets; EndTime = a_endTime; }
public MotionSection(MotionSection a_copy) { MotionSectionId = a_copy.MotionSectionId; MotionPresetId = a_copy.MotionPresetId; ModType = a_copy.ModType; SmoothType = a_copy.SmoothType; RawModValue = a_copy.RawModValue; UsePresets = a_copy.UsePresets; EndTime = a_copy.EndTime; Selected = false; Dragging = false; }
//============================================================================================ /** * @brief * *********************************************************************************************/ public MotionPreset(string a_variableName, float a_motionTiming, EMotionModType a_motionType) { MotionName = a_variableName; MotionTiming = a_motionTiming; MotionType = a_motionType; }