ERROR: Object reference not set to an instance of an object

Hi, I was getting this error “Object reference not set to an instance of an object” and realized that it was because the methods called in the GetNextQuestion() method were being called in wrong order;
image

This is the CORRECT order;
image

You may want to check that!

EDIT: My SetButtonInteractable() method is the equivalent to SetButtonState()
My SetButtonSpritesToDefaultSprites() is the equivalent to SetDefaultButtonSprites()

2 Likes

Thank you for the tip! This will be very helpful

1 Like

Privacy & Terms