I am loading the levels through AJAX. Works well.
I wanted to streamline the events from manually have like 100 event lines like below
AJAX - On Level1 Completed --> Levelarray bla bla
AJAX - On Level2 Completed --> Levelarray bla bla
..repeat until all levels has been done..
At first I thought why not make a loop and insert loopindex for the current level.. But then nope, the AJAX is triggered and can't be in loop. Ok of course.
How would you streamline it?
Thanks.