public void GUIInfoProyekON() { SoundManager.instance.PlaySingle(clickSFX); if (SoundManager.instance.musicSource.clip != AudioLainMainMenu) { SoundManager.instance.PlayMusic(AudioLainMainMenu); } InputDanaController.instance.CheckRABProyek(); MenuDaftarRisiko.SetActive(false); MenuInfoProyek.SetActive(true); MenuInfoPekerjaan.SetActive(false); MenuTahapPekerjaan.SetActive(false); MenuOverview.SetActive(false); judulGame.SetActive(false); MainMenuUI.SetActive(false); MenuPengaturanUI.SetActive(false); PanelpopUp.SetActive(false); MenuKesimpulan.SetActive(false); //popUpReset.SetActive(false); HUDGame.SetActive(false); }
public void GUIMMOn() { AllKeteranganOff(); PopUpBantuan.SetActive(false); MenuBantuan.SetActive(false); MenuTentang.SetActive(false); btnKembali.SetActive(true); btnLanjut.SetActive(true); ContainerToggle.gameObject.SetActive(false); MenuKesimpulanAkhir.SetActive(false); timeStat = 0; //SoundManager.instance.PlaySingle (clickSFX); if (SoundManager.instance.musicSource.clip != AudioMainMenu) { SoundManager.instance.PlayMusic(AudioMainMenu); } MenuAnalisisRisiko.SetActive(false); MenuDaftarRisiko.SetActive(false); MenuInfoPekerjaan.SetActive(false); UIPanel.SetActive(true); judulGame.SetActive(true); MainMenuUI.SetActive(true); MenuPengaturanUI.SetActive(false); PanelpopUp.SetActive(false); //popUpReset.SetActive(false); MenuKesimpulan.SetActive(false); MenuInfoProyek.SetActive(false); MenuTahapPekerjaan.SetActive(false); MenuDaftarRisiko.SetActive(false); MenuOverview.SetActive(false); HUDGame.SetActive(false); }
public void GUITahapPekerjaanON() { btnKembali.SetActive(true); btnLanjut.SetActive(true); ContainerToggle.gameObject.SetActive(false); CekTahapPekerjaan(); InputDanaController.instance.EndInputProyek(); timeStat = 0; SoundManager.instance.PlaySingle(clickSFX); RisikoController.instance.ResetRespon(); RisikoController.instance.AnalisisOff(); RisikoController.instance.ClearPilihanRisiko(); RisikoController.instance.ResetRespon(); MenuTahapPekerjaan.SetActive(true); MenuDaftarRisiko.SetActive(false); MenuAnalisisRisiko.SetActive(false); MenuInfoPekerjaan.SetActive(false); MenuOverview.SetActive(false); MenuInfoProyek.SetActive(false); MenuKesimpulanAkhir.SetActive(false); judulGame.SetActive(false); MainMenuUI.SetActive(false); MenuPengaturanUI.SetActive(false); PanelpopUp.SetActive(false); MenuKesimpulan.SetActive(false); //popUpReset.SetActive(false); HUDGame.SetActive(false); }
public void GUIMenuPengaturanOn() { SoundManager.instance.PlaySingle(clickSFX); UIPanel.SetActive(true); MainMenuUI.SetActive(false); MenuPengaturanUI.SetActive(true); PanelpopUp.SetActive(false); MenuKesimpulan.SetActive(false); //popUpReset.SetActive(false); MenuInfoProyek.SetActive(false); }
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 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 GUIOff() { SoundManager.instance.PlaySingle(clickSFX); SoundManager.instance.musicSource.Stop(); MenuDaftarRisiko.SetActive(false); MenuAnalisisRisiko.SetActive(false); MenuTentang.SetActive(false); UIPanel.SetActive(false); MainMenuUI.SetActive(false); MenuPengaturanUI.SetActive(false); PanelpopUp.SetActive(false); //popUpReset.SetActive(false); MenuDaftarRisiko.SetActive(false); MenuInfoProyek.SetActive(false); MenuTahapPekerjaan.SetActive(false); MenuInfoPekerjaan.SetActive(false); MenuKesimpulan.SetActive(false); MenuOverview.SetActive(false); }
public void GUITentang() { SoundManager.instance.PlaySingle(clickSFX); MenuDaftarRisiko.SetActive(false); MenuTentang.SetActive(true); MenuInfoProyek.SetActive(false); MenuInfoPekerjaan.SetActive(false); MenuTahapPekerjaan.SetActive(false); MenuOverview.SetActive(false); judulGame.SetActive(false); MainMenuUI.SetActive(false); MenuPengaturanUI.SetActive(false); PanelpopUp.SetActive(false); MenuKesimpulan.SetActive(false); //popUpReset.SetActive(false); HUDGame.SetActive(false); }
public void GUIAanalisisON() { SoundManager.instance.PlaySingle(clickSFX); RisikoController.instance.AnalisisON(); RisikoController.instance.ClearPilihanRisiko(); RisikoController.instance.ResetRespon(); MenuAnalisisRisiko.SetActive(true); MenuTahapPekerjaan.SetActive(false); MenuDaftarRisiko.SetActive(false); MenuOverview.SetActive(false); MenuInfoProyek.SetActive(false); MenuInfoPekerjaan.SetActive(false); judulGame.SetActive(false); MainMenuUI.SetActive(false); MenuPengaturanUI.SetActive(false); PanelpopUp.SetActive(false); MenuKesimpulan.SetActive(false); //popUpReset.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); }
public void GUIInfoPekerjaanON() { SoundManager.instance.PlaySingle(clickSFX); InputDanaController.instance.CheckInputPekerjaan(); RisikoController.instance.ResetRespon(); RisikoController.instance.AnalisisOff(); RisikoController.instance.ResetAnalisis(); MenuTahapPekerjaan.SetActive(false); MenuDaftarRisiko.SetActive(false); MenuAnalisisRisiko.SetActive(false); MenuInfoPekerjaan.SetActive(true); MenuInfoProyek.SetActive(false); MenuOverview.SetActive(false); textJudulInfoPekerjaan.text = "INFO " + namaTahapPekerjaan[PlayerPrefs.GetInt("counterTahap")].ToUpper(); judulGame.SetActive(false); MainMenuUI.SetActive(false); MenuPengaturanUI.SetActive(false); PanelpopUp.SetActive(false); MenuKesimpulan.SetActive(false); //popUpReset.SetActive(false); HUDGame.SetActive(false); }