camera update call
This commit is contained in:
@@ -54,4 +54,9 @@ public class AudioManager : MonoBehaviour
|
||||
soundInst.release();
|
||||
soundInst.clearHandle();
|
||||
}
|
||||
|
||||
public void PlaySoundOnCameraSwitch()
|
||||
{
|
||||
Debug.Log("Halo");
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user