{"action":"created","issue":{"url":"https://api.github.com/repos/Kimchelly/Project-Blob/issues/14","labels_url":"https://api.github.com/repos/Kimchelly/Project-Blob/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/Kimchelly/Project-Blob/issues/14/comments","events_url":"https://api.github.com/repos/Kimchelly/Project-Blob/issues/14/events","html_url":"https://github.com/Kimchelly/Project-Blob/issues/14","id":87404056,"number":14,"title":"Game music toggle doesn't work as intended","user":{"login":"Kimchelly","id":8785663,"avatar_url":"https://avatars.githubusercontent.com/u/8785663?v=3","gravatar_id":"","url":"https://api.github.com/users/Kimchelly","html_url":"https://github.com/Kimchelly","followers_url":"https://api.github.com/users/Kimchelly/followers","following_url":"https://api.github.com/users/Kimchelly/following{/other_user}","gists_url":"https://api.github.com/users/Kimchelly/gists{/gist_id}","starred_url":"https://api.github.com/users/Kimchelly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kimchelly/subscriptions","organizations_url":"https://api.github.com/users/Kimchelly/orgs","repos_url":"https://api.github.com/users/Kimchelly/repos","events_url":"https://api.github.com/users/Kimchelly/events{/privacy}","received_events_url":"https://api.github.com/users/Kimchelly/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-11T16:30:03Z","updated_at":"2015-06-12T01:31:49Z","closed_at":null,"body":"There's a problem with the ToggleMusic() function in OptionsMenu.cs (and presumably BackgroundMusicSingleton.cs as well) where the settings are saved correctly (it remembers if the music was toggle on/off) but if you start the menu scene, go to options, turn off music, reload the menu (music is still toggled off), and go to options, it throws a NullReference exception.\r\n\r\nNullReferenceException: Object reference not set to an instance of an object\r\nOptionsMenu.ToggleMusic () (at Assets/Scripts/OptionsMenu.cs:48)\r\nUnityEngine.Events.InvokableCall.Invoke (System.Object[] args) (at C:/buildslave/unity/build/Runtime/Export/UnityEvent.cs:110)\r\nUnityEngine.Events.InvokableCallList.Invoke (System.Object[] parameters) (at C:/buildslave/unity/build/Runtime/Export/UnityEvent.cs:574)\r\nUnityEngine.Events.UnityEventBase.Invoke (System.Object[] parameters) (at C:/buildslave/unity/build/Runtime/Export/UnityEvent.cs:716)\r\nUnityEngine.Events.UnityEvent`1[System.Boolean].Invoke (Boolean arg0) (at C:/buildslave/unity/build/Runtime/Export/UnityEvent_1.cs:53)\r\nUnityEngine.UI.Toggle.Set (Boolean value, Boolean sendCallback) (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/UI/Core/Toggle.cs:167)\r\nUnityEngine.UI.Toggle.Set (Boolean value) (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/UI/Core/Toggle.cs:142)\r\nUnityEngine.UI.Toggle.set_isOn (Boolean value) (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/UI/Core/Toggle.cs:136)\r\nOptionsMenu.Awake () (at Assets/Scripts/OptionsMenu.cs:26)\r\n"},"comment":{"url":"https://api.github.com/repos/Kimchelly/Project-Blob/issues/comments/111320835","html_url":"https://github.com/Kimchelly/Project-Blob/issues/14#issuecomment-111320835","issue_url":"https://api.github.com/repos/Kimchelly/Project-Blob/issues/14","id":111320835,"user":{"login":"JY-H","id":8785643,"avatar_url":"https://avatars.githubusercontent.com/u/8785643?v=3","gravatar_id":"","url":"https://api.github.com/users/JY-H","html_url":"https://github.com/JY-H","followers_url":"https://api.github.com/users/JY-H/followers","following_url":"https://api.github.com/users/JY-H/following{/other_user}","gists_url":"https://api.github.com/users/JY-H/gists{/gist_id}","starred_url":"https://api.github.com/users/JY-H/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JY-H/subscriptions","organizations_url":"https://api.github.com/users/JY-H/orgs","repos_url":"https://api.github.com/users/JY-H/repos","events_url":"https://api.github.com/users/JY-H/events{/privacy}","received_events_url":"https://api.github.com/users/JY-H/received_events","type":"User","site_admin":false},"created_at":"2015-06-12T01:31:48Z","updated_at":"2015-06-12T01:31:48Z","body":"Alright it's now fixed. \r\n\r\nWas an issue of assignment a static modifier to a Singleton instance. Should work now. "}}