private void SetCommonActions(EditorEntity instance) { instance.entityPlacement.SetConstraints(tilemapEditor.lowerLeft, tilemapEditor.upperRight); instance.entityPlacement.OnStartedBeingHeld += () => editModeControl.SwitchToAction(CommonEditMode.EditingActions.Entity_Placement); instance.entityPlacement.OnStartedBeingHeld += () => CustomButton.DeselectCurrent(); }