public void DisconnectFromSilo() { usedStorage.UpdateGUIs.RemoveListener(UpdateGUI); usedStorage = selfStorage; IsUsingSilo = false; usedStorage.UpdateGUIs.AddListener(UpdateGUI); UpdateGUI(); }
public void ConnectToSilo(MaterialStorage silo) { if (!IsUsingSilo) { usedStorage.UpdateGUIs.RemoveListener(UpdateGUI); usedStorage = silo; IsUsingSilo = true; usedStorage.UpdateGUIs.AddListener(UpdateGUI); UpdateGUI(); } }
private void Awake() { selfStorage = GetComponent <MaterialStorage>(); usedStorage = selfStorage; usedStorage.UpdateGUIs.AddListener(UpdateGUI); }
private void Awake() { materialStorage = GetComponent <MaterialStorage>(); CraftingManager.RoundstartStationSilo = this; }