Add music throughout. Start work on the prediction side pannels

This commit is contained in:
WillJeynes
2026-08-27 18:43:49 +01:00
parent 2ccfb29399
commit abe7a12244
12 changed files with 2194 additions and 136 deletions
+6 -2
View File
@@ -261,12 +261,14 @@ public class CameraController : MonoBehaviour
if (guard != null)
{
AudioManager.Instance.PlaySound("WordAdd");
currentGuardManager = guard;
guard.isfocussed = 2;
if (talkButton != null) talkButton.gameObject.SetActive(true);
}
else if (door != null)
{
AudioManager.Instance.PlaySound("WordAdd");
currentDoorManager = door;
door.isfocussed = 2;
if (doorButton != null) doorButton.gameObject.SetActive(true);
@@ -277,6 +279,7 @@ public class CameraController : MonoBehaviour
// TRIPWIRE 4: ADD THIS LINE HERE
Debug.Log("💨 Raycast hit nothing on the Interactable layer. Returning to main camera.");
ReturnToMainCamera();
AudioManager.Instance.PlaySound("WordRemove");
}
}
@@ -284,8 +287,9 @@ public class CameraController : MonoBehaviour
{
if (currentGuardManager != null)
{
AudioManager.Instance.PlaySound("Select");
DialogManager.Instance.StartDialog(currentGuardManager);
talkButton.gameObject.SetActive(false);
//talkButton.gameObject.SetActive(false);
}
}
@@ -295,7 +299,7 @@ public class CameraController : MonoBehaviour
{
// Add your door sequence logic here!
Debug.Log("Door sequence started!");
doorButton.gameObject.SetActive(false);
//doorButton.gameObject.SetActive(false);
}
}