public void LaunchDisable() { appearable.LaunchDisappear(); if (commodity != null) { commodity.ResetInfoPanelTimer(); } disablePending = true; }
public void SetContinueButtonActive(bool _active) { if (_active) { continueButton.gameObject.SetActive(_active); continueButton.GetComponent <Button>().interactable = true; } else { continueButton.GetComponent <Button>().interactable = false; continueButton.LaunchDisappear(); } manualProgress = _active; }
public void OnSwitch() { onProductionLayout = !onProductionLayout; ScenarioService.instance.inProductionPhase = onProductionLayout; if (onProductionLayout) { foreach (GameObject go in productionObjects) { go.SetActive(true); } foreach (GameObject go in exchangeObjects) { Appearable appearable = go.GetComponent <Appearable>(); if (appearable == null) { go.SetActive(false); } else { appearable.LaunchDisappear(); } } } else { foreach (GameObject go in exchangeObjects) { go.SetActive(true); } foreach (GameObject go in productionObjects) { Appearable appearable = go.GetComponent <Appearable>(); if (appearable == null) { go.SetActive(false); } else { appearable.LaunchDisappear(); } } } }