public override void execute()
 {
     //This should only ever be run in the new subaction context panel. Otherwise, throw error
     if (ContextualPanelData.isOfType(typeof(CreateHitboxEditContextPanel)))
     {
         executingPanelData = (CreateHitboxEditContextPanel)LegacyEditorData.contextualPanel;
         previousCategory   = executingPanelData.selectedCategory;
         executingPanelData.selectedCategory = nextCategory;
         executingPanelData.FireContextualPanelChange();
     }
     else
     {
         throw new System.Exception("Attempting to use NewSubactionChangeSubactionType from a Contextual Panel other than NewSubactionContextPanel");
     }
 }
 public void init(CreateHitboxEditContextPanel.HitboxEditorCategory category)
 {
     nextCategory = category;
 }