I have a GameScene which is created by CocosBuilder. Normally the function is like this:
var GameScene = function(){};
GameScene.prototype.onDidLoadFromCCB = function()
{
}
GameScene.prototype.onBackButtonPress = function()
{
}
Is there a way to pass parameter to the function like this:
var GameScene = function(param1, param2){};
Thanks