1
This commit is contained in:
parent
01f43ab4a0
commit
1db5053277
2
timer.go
2
timer.go
@ -17,6 +17,7 @@ type Timer struct {
|
||||
}
|
||||
|
||||
func (this *Timer) init() {
|
||||
this.timer = new(q5.XTimer)
|
||||
this.timer.Init(
|
||||
func (context interface{}) int64 {
|
||||
return q5.GetTickCount()
|
||||
@ -32,6 +33,7 @@ func (this *Timer) update() {
|
||||
|
||||
func (this *Timer) unInit() {
|
||||
this.timer.UnInit()
|
||||
this.timer = nil
|
||||
}
|
||||
|
||||
func (this *Timer) NewTimerAttacher() *TimerAttacher {
|
||||
|
Loading…
x
Reference in New Issue
Block a user