Open shker-tt opened 4 days ago
3.8.4
editor
-
No response
import { _decorator, Component, log, tween } from 'cc'; const { ccclass } = _decorator; @ccclass('Test.UpdateUntil') export class Test_UpdateUntil extends Component { private testNumber = 0 start() { this.startTestTween() } private startTestTween() { log("startTestTween") let ended = false tween(this) .delay(1) .call(()=>{ tween(this) .delay(1) .call(()=>{ ended = true }) .start() this.testNumber++ if(this.testNumber > 1) { debugger } }) //.delay(1) .updateUntil(()=>{ return ended }) .call(()=>{ this.testNumber = 0 this.scheduleOnce(()=>{ this.startTestTween() }, 0.3) }) .start() } }
Cocos Creator version
3.8.4
System information
editor
Issue description
-
Relevant error log output
No response
Steps to reproduce
Minimal reproduction project
No response