7:13am - Well I've been up all night but I've got reasons to code, so here I go. First time in almost a month.
The problem from last time was that the change scene function was freeing/deleting the previous scene before it had finished processing a coroutine that was active. I realized that the scene being removed was just told 'What can I say except DELETE THIS.' and it did. It should be told, 'Delete yourself after cleaning up' so I'm going to make it do that instead.
7:49am - This is proving to be more difficult than I had first thought.
The Interactable starts off by running the interact method on the TeleportAction, which yields and waits for the next frame before announcing it's finished. Meanwhile the Interactable yields as well, until the interact method is done. But I have no way to intercept the finished signal from either the TeleportAction or the Interactable, and I'm not sure I should since those seem tied to something else.
I'm starting to think I should completely redo the scene transition system so it's not touching this mess.
9:35am - I'm too tired to continue. So I'll try again next time.
The problem from last time was that the change scene function was freeing/deleting the previous scene before it had finished processing a coroutine that was active. I realized that the scene being removed was just told 'What can I say except DELETE THIS.' and it did. It should be told, 'Delete yourself after cleaning up' so I'm going to make it do that instead.
7:49am - This is proving to be more difficult than I had first thought.
The Interactable starts off by running the interact method on the TeleportAction, which yields and waits for the next frame before announcing it's finished. Meanwhile the Interactable yields as well, until the interact method is done. But I have no way to intercept the finished signal from either the TeleportAction or the Interactable, and I'm not sure I should since those seem tied to something else.
I'm starting to think I should completely redo the scene transition system so it's not touching this mess.
9:35am - I'm too tired to continue. So I'll try again next time.