At 10/15/21 01:14 PM, GraeBush wrote:
void onLoggedIn()
{
io.newgrounds.objects.user player = ngio_core.current_user;
SceneManager.LoadScene(0);
}
Hi,
just a hunch, but a quick question based on this part – do you load a different scene when the player is logged in?
Unless you take some precautions (Object.DontDestroyOnLoad, or an additively loaded scene), this would destroy the NGio GameObject and it wouldn't be available in the following scene.
If it's not this, I'll try to help you debug it to get it working.
At 10/15/21 01:14 PM, GraeBush wrote:
void onLoggedIn()
{
io.newgrounds.objects.user player = ngio_core.current_user;
SceneManager.LoadScene(0);
}
Hi,
just a hunch, but a quick question based on this part – do you load a different scene when the player is logged in?
Unless you take some precautions (Object.DontDestroyOnLoad, or an additively loaded scene), this would destroy the NGio GameObject and it wouldn't be available in the scene you load.
If it's not this, I'll try to help you debug it to get it working.