public override void _init() { smeltRecipes = SmeltRecipes.instance; items = Items.instance; itemsToTransform = new GameObject[itemsStockedMax]; timer = speed; }
void Awake() { instance = this; foreach (SmeltRecipe recipe in recipes) { if (recipe.amountNeeded == 0) { recipe.amountNeeded = 1; } if (recipe.amountResulted == 0) { recipe.amountResulted = 1; } } }