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 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 GUIKesimpulanAkhir() { /*Menu Kesimpulan Akhir * public GameObject MenuKesimpulanAkhir; * public TahapPekerjaan[] ArrayTahapPekerjaan; * public GameObject BackTOKA; * public Text TotalRisikoTerjadi, TotalRAB, TotalRAP, TotalMM, TotalK3, EstimasiWaktu, DurasiWaktu; * public Text TotalContingency, TotalSisa;*/ SoundManager.instance.PlaySingle(clickSFX); SetListenerKembaliKeKesimpulan(); TotalRAB.text = DataManager.instance.gameInstance.DanaTotalProyek.ToString("N0", new CultureInfo("id-ID")); TotalRAP.text = DataManager.instance.gameInstance.CountTotalRAP().ToString("N0", new CultureInfo("id-ID")); TotalMM.text = ": " + DataManager.instance.gameInstance.CountMMTahap().ToString() + " / 90"; TotalK3.text = ": " + DataManager.instance.gameInstance.CountK3Tahap().ToString() + " / 90"; EstimasiWaktu.text = DataManager.instance.gameInstance.CountWaktuEstimasi().ToString(); DurasiWaktu.text = DataManager.instance.gameInstance.CountWaktuDurasi().ToString(); TotalContingency.text = DataManager.instance.gameInstance.CountTotalContingency().ToString("N0", new CultureInfo("id-ID")); TotalSisa.text = DataManager.instance.gameInstance.ListTahap[8].DanaTersisa.ToString("N0", new CultureInfo("id-ID")); //Masukan Data Tahap for (int i = 0; i < ArrayTahapPekerjaan.Length; i++) { ArrayTahapPekerjaan[i].IsiKesimpulanTahap(DataManager.instance.gameInstance.ListTahap[i]); } MenuKesimpulanAkhir.SetActive(true); MenuTahapPekerjaan.SetActive(false); MenuKesimpulan.SetActive(false); ContainerToggle.SetActive(false); MenuTentang.SetActive(false); //SoundManager.instance.PlaySingle (clickSFX); if (SoundManager.instance.musicSource.clip != AudioLainMainMenu || !SoundManager.instance.musicSource.isPlaying) { SoundManager.instance.PlayMusic(AudioLainMainMenu); } }