private IEnumerator WaitForProvider() { while (Provider == null) { yield return(WaitFor.EndOfFrame); } materialsListDisplay.materialStorageLink = Provider.GetComponent <MaterialStorageLink>(); materialsListDisplay.materialStorageLink.materialListGUI = materialsListDisplay; materialsListDisplay.UpdateMaterialList(); }
private IEnumerator WaitForProvider() { while (Provider == null) { yield return(WaitFor.EndOfFrame); } oreRedemptionMachine = Provider.GetComponent <OreRedemptionMachine>(); UpdateLaborPoints(oreRedemptionMachine.laborPoints); oreRedemptionMachine.oreRedemptiomMachineGUI = this; materialsListDisplay.materialStorageLink = oreRedemptionMachine.materialStorageLink; materialsListDisplay.materialStorageLink.materialListGUI = materialsListDisplay; materialsListDisplay.UpdateMaterialList(); }