public void GUIKesimpulanInListTahap(int tahap) { TahapKesimpulanMuncul = tahap; ContainerToggle.gameObject.SetActive(true); btnToggleKesimpulan.isOn = true; SoundManager.instance.PlaySingle(clickSFX); KesimpulanController.instance.GenerateKesimpulan(DataManager.instance.gameInstance.ListTahap[tahap].ListRisikoTerjadi, tahap); //Ambil data dari game instance RisikoController.instance.LoadOverview(tahap); TahapMuncul = tahap; //Isi contingency dll EstimasiOverview.text = DataManager.instance.gameInstance.ListTahap[tahap].WaktuEstimasi.ToString(); InputDanaController.instance.CashFlowOverview.text = DataManager.instance.gameInstance.ListTahap[tahap].DanaTahap.ToString("N0", new CultureInfo("id-ID")); InputDanaController.instance.RABOverview.text = DataManager.instance.gameInstance.ListTahap[tahap].RABTahap.ToString("N0", new CultureInfo("id-ID")); InputDanaController.instance.RAPOverview.text = DataManager.instance.gameInstance.ListTahap[tahap].RAPTahap.ToString("N0", new CultureInfo("id-ID")); OverviewContingency.text = DataManager.instance.gameInstance.ListTahap[tahap].DanaTersedia.ToString("N0", new CultureInfo("id-ID")); //isi Menu Kesimpulan MenuKesimpulanAkhir.SetActive(false); //atur Button mana yang ON TahapWithIncrease.SetActive(false); TahapWithoutIncrease.SetActive(true); MainMenuWithIncrease.SetActive(false); MenuAnalisisRisiko.SetActive(false); MenuDaftarRisiko.SetActive(false); MenuInfoPekerjaan.SetActive(false); UIPanel.SetActive(true); judulGame.SetActive(false); MainMenuUI.SetActive(false); MenuPengaturanUI.SetActive(false); PanelpopUp.SetActive(false); //popUpReset.SetActive(false); MenuKesimpulan.SetActive(true); MenuInfoProyek.SetActive(false); MenuTahapPekerjaan.SetActive(false); MenuDaftarRisiko.SetActive(false); MenuOverview.SetActive(false); HUDGame.SetActive(false); }
public void GUIKesimpulanON() { ContainerToggle.gameObject.SetActive(true); SoundManager.instance.PlaySingle(clickSFX); if (SoundManager.instance.musicSource.clip != AudioLainMainMenu || !SoundManager.instance.musicSource.isPlaying) { SoundManager.instance.PlayMusic(AudioLainMainMenu); } /*int[] angkaRisikoTerjadi, RisikoObject[] objectRisiko, float[] DampakWaktu, * float[] ListDampakDana, float estimasi, string DanaResponRisiko, string DanaPerbaikan * */ //Piliih button mana yang ON TahapWithIncrease.SetActive(true); TahapWithoutIncrease.SetActive(false); MainMenuWithIncrease.SetActive(true); MenuAnalisisRisiko.SetActive(false); MenuDaftarRisiko.SetActive(false); MenuInfoPekerjaan.SetActive(false); MenuOverview.SetActive(false); UIPanel.SetActive(true); judulGame.SetActive(false); MainMenuUI.SetActive(false); MenuPengaturanUI.SetActive(false); PanelpopUp.SetActive(false); //popUpReset.SetActive(false); MenuKesimpulan.SetActive(true); MenuInfoProyek.SetActive(false); MenuTahapPekerjaan.SetActive(false); MenuDaftarRisiko.SetActive(false); HUDGame.SetActive(false); }