Score.onChange 方法

設定分數變更時的處理常式。

簽名

onChange(handler: (gameId: string, score: number) => void): void;

參數

名稱 類型 選用 說明
handler (gameId: string, score: number) => void

傳回

void