camera update call

This commit is contained in:
2024-05-27 16:21:52 +01:00
parent bfa4c7ec63
commit f468ff9177
6 changed files with 305 additions and 127 deletions

View File

@@ -54,4 +54,9 @@ public class AudioManager : MonoBehaviour
soundInst.release();
soundInst.clearHandle();
}
public void PlaySoundOnCameraSwitch()
{
Debug.Log("Halo");
}
}

View File

@@ -149,7 +149,7 @@ public class CameraManager : MonoBehaviour
m_BrainPose.SetActive(false);
m_Camera.cullingMask = m_Compare;
m_PoseCanvas.SetActive(false);
m_Rewards.SetActive(true);
m_Rewards.SetActive(false);
break;
}
@@ -200,6 +200,8 @@ public class CameraManager : MonoBehaviour
private void SetCamera(GameObject camera)
{
AudioManager.instance.PlaySoundOnCameraSwitch();
SetCameraBlend(camera);
// Set all camera to active, and set all priorities to 0, bar the first camera