Fixed nullref in TakePhotoState
This commit is contained in:
@@ -280,8 +280,16 @@ public class AudioManager : ManagedBehaviour, IPausable
|
||||
private void InterruptAllVOSources()
|
||||
{
|
||||
foreach (AppleAudioSource source in criticalVOSources)
|
||||
{
|
||||
if (source == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
source.InterruptAudio("GlobalInterrupt");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
foreach (AppleAudioSource source in VOSources)
|
||||
|
||||
@@ -50,9 +50,9 @@ public class BushAudioController : ManagedBehaviour
|
||||
|
||||
}
|
||||
|
||||
public void OnDisable()
|
||||
{
|
||||
// Unsubscribe from events when disabled
|
||||
_eventSource.AudioStopped -= PlayBirdCounter;
|
||||
}
|
||||
//public void OnDisable()
|
||||
//{
|
||||
// // Unsubscribe from events when disabled
|
||||
// _eventSource.AudioStopped -= PlayBirdCounter;
|
||||
//}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user