Igor Georgiev Posted January 17, 2017 Share Posted January 17, 2017 Hey guys, I got a weird behavior from using the callback method on group.onDestroy: this.playerCar = 'car1'; this.enemyCar = 'car2'; this.optionsGroup.onDestroy.add(this.currentTrack.createCars, this, 0, this.playerCar, this.enemyCar); Link to comment Share on other sites More sharing options...
CharlesCraft50 Posted January 17, 2017 Share Posted January 17, 2017 You can do, this is how you pass parameters in this function: group.onDestroy.add(function(param1, param2){/*Code here... ex: return param1;*/}); Link to comment Share on other sites More sharing options...
Recommended Posts