override public float Run() { if (craftingMethod == ActionCraftingMethod.ClearRecipe) { KickStarter.runtimeInventory.RemoveRecipes(); } else if (craftingMethod == ActionCraftingMethod.CreateRecipe) { PlayerMenus.CreateRecipe(); } return(0f); }
public override float Run() { switch (craftingMethod) { case ActionCraftingMethod.ClearRecipe: KickStarter.runtimeInventory.RemoveRecipes(); break; case ActionCraftingMethod.CreateRecipe: PlayerMenus.CreateRecipe(); break; default: break; } return(0f); }