scene transition fixes

This commit is contained in:
2026-03-07 10:18:38 -06:00
parent 90430ef9c3
commit c844185ff9
8 changed files with 8238 additions and 22 deletions
+5 -1
View File
@@ -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