Fix bug with DisableAfterFinish null reference
This commit is contained in:
parent
c6169add04
commit
1297d08805
|
@ -17,11 +17,17 @@ public class DisableAfterFinish : MonoBehaviour
|
||||||
|
|
||||||
private void OnEnable()
|
private void OnEnable()
|
||||||
{
|
{
|
||||||
|
if (disableController == null)
|
||||||
|
return;
|
||||||
|
|
||||||
disableController.DoDisable += Disable;
|
disableController.DoDisable += Disable;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnDisable()
|
private void OnDisable()
|
||||||
{
|
{
|
||||||
|
if (disableController == null)
|
||||||
|
return;
|
||||||
|
|
||||||
disableController.DoDisable -= Disable;
|
disableController.DoDisable -= Disable;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -267,7 +267,7 @@ MonoBehaviour:
|
||||||
Sound:
|
Sound:
|
||||||
Clip: {fileID: 0}
|
Clip: {fileID: 0}
|
||||||
Volume: 1
|
Volume: 1
|
||||||
Priority: 128
|
Priority: 256
|
||||||
Pitch: 1
|
Pitch: 1
|
||||||
Zone: 0
|
Zone: 0
|
||||||
PlayOnAwake: 0
|
PlayOnAwake: 0
|
||||||
|
|
Loading…
Reference in New Issue