I recently started working on a game in cocos creator which uses TypeScript/JavaScript as a language, which I\'m new to. I\'m trying to create a complex callback method that