Esempio n. 1
0
 void Awake()
 {
     areaNotificationText = FindObjectOfType <AreaNotificationText>();
     cameraController     = FindObjectOfType <CameraController>();
     player      = FindObjectOfType <Player>();
     screenCover = FindObjectOfType <ScreenCover>();
 }
Esempio n. 2
0
    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);
    }
Esempio n. 3
0
 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>();
 }