scene transition fixes
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using TMPro;
|
||||
using Unity.VectorGraphics;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
@@ -46,7 +47,10 @@ private void ReloadReferences()
|
||||
blackScreen = GameObject.FindWithTag("BlackScreen").GetComponent<Image>();
|
||||
playerController = GameObject.FindWithTag("Player").GetComponent<PlayerController>();
|
||||
DialogueManager = GetComponent<DialogueManager>();
|
||||
DialogueManager.ReloadReferences();
|
||||
|
||||
Inventory = GetComponent<Inventory>();
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -85,7 +89,7 @@ private IEnumerator EnterSceneDoorCoroutine(string scene, int doorId)
|
||||
// Optional: Update a loading bar with asyncLoad.progress
|
||||
yield return null;
|
||||
}
|
||||
|
||||
|
||||
ReloadReferences();
|
||||
|
||||
// Make sure screen is black in new scene
|
||||
|
||||
Reference in New Issue
Block a user