var Timer = Container.expand(function () {
var self = Container.call(this);
self.time = 0;
self.updateTime = function () {
self.time += 1;
};
self.getTime = function () {
return self.time;
};
});
var Game = Container.expand(function () {
var self = Container.call(this);
var timer = self.addChild(new Timer());
LK.on('tick', function () {
timer.updateTime();
console.log('Time: ' + timer.getTime());
});
});