Hide Ana-Lyse's dialogue component when taking photo, also correctly restore a hidden state with the dialogu turned off

This commit is contained in:
Michal Pikulski
2025-11-24 11:07:46 +01:00
parent ff28bd23cb
commit f0abc4760b
5 changed files with 96 additions and 6 deletions

View File

@@ -30,7 +30,7 @@ public class cameraSwitcherNailBird : MonoBehaviour
private void OnTriggerExit2D(Collider2D other)
{
if (other.CompareTag("Player"))
if (other.CompareTag("Player") && gameObject.activeInHierarchy)
{
playerInsideCount--;
if (playerInsideCount == 0 && virtualCamera != null)