init git
This commit is contained in:
7
assets/FishSingle/script/game/utils/TimeHelper.ts
Normal file
7
assets/FishSingle/script/game/utils/TimeHelper.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { tween, Node } from 'cc'
|
||||
|
||||
export default class TimeHelper {
|
||||
public static exeNextFrame(node: Node, callback: Function) {
|
||||
tween(node).delay(0.02).call(callback).start()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user