Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I use this line to populate the array within collection:
- cc.newevent(ms_time,this.element.id,this.element.buttonstate);
- Here is the definition of newevent:
- this.newevent = function(time0, id0, state0) {
- console.log("newevent");
- this.events.push(event_definition());
- var event = this.events[this.events.length-1];
- event.time = time0;
- event.id = id0;
- event.state = state0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement