Skip to main content

Ingot

A class in Root.Township, Alta.Inventory.

Item component on ingots that gives their smelting time and metal material.

Constructors​

MemberWhat it is
Ingot()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

2 private and internal fields
MemberWhat it is
private PhysicalMaterial physicalMaterialBacking field for PhysicalMaterial.
private float smeltingDurationBacking field for SmeltingDuration.

Properties​

MemberWhat it is
PhysicalMaterial PhysicalMaterial { get; }The metal this ingot is made of.
float SmeltingDuration { get; }How long this ingot takes to smelt.