const ticker = new SimpleTicker()
  .wait(200) // 先等待 200 幅的時間
  .loop(10, counts => {
    // 在接下來的 10 幅做這件事
    console.log(counts); // 10, 9, 8, ......, 1
  })
  .end(() => { 
    // 全部結束後做下一件事
  });
ticker.go(); //觸發此計時器
const ticker = new SimpleTicker()
  .wait(200) // 先等待 200 幅的時間
  .doOnce(() => {
    // 等待完後做下一件事
  });
ticker.go(); //觸發此計時器
this.dialogue.chatQueue
  .addChat({person: 'KP', imagePath: '...', first: true})
  .addChat({person: 'NONAME', imagePath: '...'})
  .addChat({person: 'KP', imagePath: '...'})
  .addChat({person: 'NONAME', imagePath: '...'})
  .addChat({person: 'NONAME', imagePath: '...'})
  .play(someCB);
// 註:this 是對話場景的 instance,imagePath 就是該對話要顯示的文字圖檔
皆取自 奔跑吧!台北:程式幕後分享
之後再分享研究與實作