|
|
@ -71,7 +71,14 @@ namespace Fungus |
|
|
|
|
|
|
|
|
|
|
|
instance = this; |
|
|
|
instance = this; |
|
|
|
|
|
|
|
|
|
|
|
GameObject.DontDestroyOnLoad(this); |
|
|
|
if (transform.parent == null) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
GameObject.DontDestroyOnLoad(this); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
Debug.LogError("Save Menu cannot be preserved across scene loads if it is a child of another GameObject."); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
clickAudioSource = GetComponent<AudioSource>(); |
|
|
|
clickAudioSource = GetComponent<AudioSource>(); |
|
|
|
} |
|
|
|
} |
|
|
|