void Awake() { areaNotificationText = FindObjectOfType <AreaNotificationText>(); cameraController = FindObjectOfType <CameraController>(); player = FindObjectOfType <Player>(); screenCover = FindObjectOfType <ScreenCover>(); }
private void ScreenCoverNextScene(SceneUIOpenType NextScene) { SoundManager.Instance.StopBGM(); ScreenCover cover = ScreenCover.GetScreenCover(); cover.StartToEndCover(() => GameSceneManager.Instance.SetSceneChange(EnumGameScene.MainMenuScene, NextScene), null, 0.04f); DontDestroyOnLoad(cover.gameObject); }
void Awake() { bossHealthbars = Resources.FindObjectsOfTypeAll <EnemyBossHealthbar>(); essenceCollectorGUI = FindObjectOfType <EssenceCollectorGUI>(); areaNotificationText = Resources.FindObjectsOfTypeAll <AreaNotificationText>()[0]; cameraController = FindObjectOfType <CameraController>(); player = FindObjectOfType <Player>(); screenCover = FindObjectOfType <ScreenCover>(); soundManager = FindObjectOfType <SoundManager>(); hubManager = hubArea.GetComponent <HubManager>(); }