private void Awake() { titleController = FindObjectOfType <TitleController>(); cinematicController = FindObjectOfType <CinematicController>(); gameplayController = FindObjectOfType <GameplayController>(); deathController = FindObjectOfType <DeathController>(); resultsController = FindObjectOfType <ResultsController>(); }
private void Start() { cinematicController = GameObject.FindGameObjectWithTag("GameManager").GetComponent <CinematicController>(); if (cinematicController.CinematicPlayed.Contains(cinematicName)) { RemoveEverything(); } else { foreach (CinemachineVirtualCamera cam in virtualCameras) { cam.enabled = false; cam.Priority = 20; } } }
public void sayNo() { switch (type) { case DialogType.DIALOG_TYPE_PRINCESS_START: ConfigController.firstDialog = false; RightPath(); break; case DialogType.DIALOG_TYPE_END_GAME: panel.SetActive(false); buttons[0].SetActive(false); buttons[1].SetActive(false); bossController.spawnBoss(); LightController.SwapLight(false); CinematicController.startCinematic(); SaveController.SavePoint(ConfigController.phase, 0, 0, 0, 0, 0); break; case DialogType.DIALOG_TYPE_TRUE_END_GAME: panel.SetActive(false); buttons[0].SetActive(false); buttons[1].SetActive(false); LightController.SwapLight(true); break; case DialogType.DIALOG_TYPE_EXIT_GAME: panel.SetActive(false); buttons[0].SetActive(false); buttons[1].SetActive(false); break; default: break; } }
private void Awake() { Instance = this; }
// Start is called before the first frame update void Start() { cinematicController = GameObject.FindObjectOfType <CinematicController>(); InitializeMenu(); }