Example #1
0
 public void RemoveRandomizer(RandomizerElement element)
 {
     Undo.RegisterCompleteObjectUndo(m_Property.serializedObject.targetObject, "Remove Randomizer");
     scenario.RemoveRandomizer(element.randomizerType);
     m_Property.serializedObject.Update();
     RefreshList();
 }
Example #2
0
 protected override void RegisterCallbacksOnTarget()
 {
     m_RandomizerElement = (RandomizerElement)target;
     m_DragHandle        = m_RandomizerElement.Q <VisualElement>("drag-handle");
     m_DragHandle.RegisterCallback <MouseDownEvent>(OnMouseDown);
     m_DragHandle.RegisterCallback <MouseMoveEvent>(OnMouseMove);
     m_DragHandle.RegisterCallback <MouseUpEvent>(OnMouseUp);
 }