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()
|
||||
{
|
||||
if (disableController == null)
|
||||
return;
|
||||
|
||||
disableController.DoDisable += Disable;
|
||||
}
|
||||
|
||||
private void OnDisable()
|
||||
{
|
||||
if (disableController == null)
|
||||
return;
|
||||
|
||||
disableController.DoDisable -= Disable;
|
||||
}
|
||||
|
||||
|
|
|
@ -267,7 +267,7 @@ MonoBehaviour:
|
|||
Sound:
|
||||
Clip: {fileID: 0}
|
||||
Volume: 1
|
||||
Priority: 128
|
||||
Priority: 256
|
||||
Pitch: 1
|
||||
Zone: 0
|
||||
PlayOnAwake: 0
|
||||
|
|
Loading…
Reference in New Issue