public void OnTogglePerbandinganChange(bool value) { if (btnToggleKesimpulan.isOn) { TahapPekerjaanRisk.SetActive(false); MainMenuRisk.SetActive(false); GUIKesimpulanON(); btnKembali.SetActive(true); btnLanjut.SetActive(true); } else if (btnToggleOverview.isOn) { TahapPekerjaanRisk.SetActive(true); MainMenuRisk.SetActive(true); TahapWithoutIncreaseOverview.SetActive(false); TopPoint.transform.localPosition = new Vector2(0, 150); ListRisiko.rectTransform.localPosition = new Vector3(0, -227, 0); ListRisiko.rectTransform.sizeDelta = new Vector2(880, 345); TabelDaftarRisiko.transform.localPosition = new Vector3(0, -2, 0); TabelDaftarRisiko.rectTransform.sizeDelta = new Vector2(880, 400); GUIOverviewRisikoON(); btnKembali.SetActive(false); btnLanjut.SetActive(false); btnBack.SetActive(false); btnLanjut.SetActive(false); } }
public void GUIDaftarRisikoON() { if (JudulOverview.text == "OVERVIEW RISIKO") { Debug.Log("Change Top Point"); TopPoint.transform.localPosition = new Vector2(0, 150); ListRisiko.rectTransform.localPosition = new Vector3(0, -227, 0); ListRisiko.rectTransform.sizeDelta = new Vector2(880, 345); } JudulOverview.text = "RESPON RISIKO"; SoundManager.instance.PlaySingle(clickSFX); GUIOVCounter = 0; RisikoController.instance.AnalisisOff(); RisikoController.instance.AmbilSorted(); UIPanel.SetActive(true); MenuAnalisisRisiko.SetActive(false); MenuDaftarRisiko.SetActive(true); EstimasiHari.SetActive(true); TabelDaftarRisiko.transform.localPosition = new Vector3(0, -2, 0); TabelDaftarRisiko.rectTransform.sizeDelta = new Vector2(880, 400); MenuTahapPekerjaan.SetActive(false); MenuInfoPekerjaan.SetActive(false); MenuInfoProyek.SetActive(false); MenuOverview.SetActive(false); judulGame.SetActive(false); MainMenuUI.SetActive(false); MenuPengaturanUI.SetActive(false); PanelpopUp.SetActive(false); MenuKesimpulan.SetActive(false); //popUpReset.SetActive(false); HelpOverview.SetActive(false); HelpRespon.SetActive(true); TahapWithoutIncreaseOverview.SetActive(false); MainMenuRisk.SetActive(false); TahapPekerjaanRisk.SetActive(false); HUDGame.SetActive(false); }