Method AddRecipe
| Improve this Doc View SourceAddRecipe(CustomRecipe)
Add a CustomRecipe to the game.
Checks if the custom recipe is unique and adds it to the list of custom recipes.
Custom recipes are added to the current ObjectDB on every ObjectDB.Awake.
Checks if the custom recipe is unique and adds it to the list of custom recipes.
Custom recipes are added to the current ObjectDB on every ObjectDB.Awake.
Declaration
public bool AddRecipe(CustomRecipe customRecipe)
Parameters
Type | Name | Description |
---|---|---|
CustomRecipe | customRecipe | The custom recipe to add. |
Returns
Type | Description |
---|---|
bool | true if the custom recipe was added to the manager. |