Ingot
A class in Root.Township, Alta.Inventory.
Item component on ingots that gives their smelting time and metal material.
- Listed in Items, inventory and logic
- Inherits or implements
ItemComponent - Documented in Smelting and forging
Constructors
| Member | What it is |
|---|---|
Ingot() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
2 private and internal fields
| Member | What it is |
|---|---|
private PhysicalMaterial physicalMaterial | Backing field for PhysicalMaterial. |
private float smeltingDuration | Backing field for SmeltingDuration. |
Properties
| Member | What it is |
|---|---|
PhysicalMaterial PhysicalMaterial { get; } | The metal this ingot is made of. |
float SmeltingDuration { get; } | How long this ingot takes to smelt. |