I am using PlayCanvas as my medium for my final project and I am currently under an issue where I have a specific script that lets the game move to another scene if it reaches these conditions.
This is the script that allows my character to collide with different objects in my game and have certain endings.
The endings are divided into 3; completing 4 tasks, completing 4 pastimes, and completing 2 of each. The error mostly occurs when the character completes or has already collected 4 tasks.
This is what usually pops up when that error occurs.
If it might help, here is a link to my project. Thank you.