
image.png
private _scheduler: Scheduler = null
init(){
Scheduler.enableForTarget(this)
this._scheduler = director.getScheduler()
}
update(){
}
startCheck(){
director.on(Director.EVENT_BEFORE_DRAW, this.checkProfile, this);
this._scheduler.schedule(this.checked, this, 10)
}
checked(){
this._scheduler.unschedule(this.checked, this)
director.off(Director.EVENT_BEFORE_DRAW, this.checkProfile, this);
}
checkProfile(){
}