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); }
public void GUIOverviewRisikoON() { MenuKesimpulan.SetActive(false); MenuDaftarRisiko.SetActive(true); MenuOverview.SetActive(true); EstimasiOverview.text = RisikoController.instance.textEstimasiTahap.text; TopPoint.transform.localPosition = new Vector2(0, 208); EstimasiHari.SetActive(false); TabelDaftarRisiko.transform.localPosition = new Vector3(0, -45, 0); TabelDaftarRisiko.rectTransform.sizeDelta = new Vector2(880, 300); ListRisiko.rectTransform.localPosition = new Vector3(0, -180, 0); ListRisiko.rectTransform.sizeDelta = new Vector2(880, 250); JudulOverview.text = "OVERVIEW RISIKO"; SoundManager.instance.PlaySingle(clickSFX); RisikoController.instance.CekRespon(); Debug.Log("Nilai Cashflow: " + InputDanaController.instance.CashFlowOverview.text); HelpOverview.SetActive(true); HelpRespon.SetActive(false); K3Overview.text = ": " + RisikoController.instance.K3.ToString(); MMOverview.text = ": " + RisikoController.instance.MM.ToString(); ScrollbarOverview.value = 1f; }