SendMessageSystem Lua function getting disabled when DontDestroyOnLoad and AllowOnlyOneInstance are enabled
Posted: Wed Jul 22, 2020 5:51 pm
DontDestroyOnLoad and AllowOnlyOneInstance are enabled on my DialogueSystemController, and my CommonLibraryLua script is on the same prefab as my DialogueSystemController.
The order that the CommonLibraryLua OnEnable/OnDisable functions get called leaves the three SendMessage Lua functions disabled. I'm not sure how to go about fixing it.
OnEnable is called after the scene load
OnDisable is called in Awake, which is eventually called after OnEnable
The order that the CommonLibraryLua OnEnable/OnDisable functions get called leaves the three SendMessage Lua functions disabled. I'm not sure how to go about fixing it.
OnEnable is called after the scene load
OnDisable is called in Awake, which is eventually called after OnEnable