This commit is contained in:
aozhiwei 2024-03-14 19:49:18 +08:00
parent bf5c2e21d7
commit 6d2c0c67e6

View File

@ -128,6 +128,7 @@ func (this *team) StartGame() {
this.startTime = f5.GetApp().GetNowSeconds() this.startTime = f5.GetApp().GetNowSeconds()
this.stateNotifyMsg.State = proto.Int32(this.state) this.stateNotifyMsg.State = proto.Int32(this.state)
this.genStartGameInfo() this.genStartGameInfo()
this.SendStateNotify()
f5.GetTimer().SetInterval(1000, func(e int32, args *q5.Args) { f5.GetTimer().SetInterval(1000, func(e int32, args *q5.Args) {
if e == q5.TIMER_EXEC_EVENT { if e == q5.TIMER_EXEC_EVENT {
this.SendStateNotify() this.SendStateNotify()