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