伊林二世

Results 5 comments of 伊林二世

> 我就是M1芯片,至少EDITOR模式下没啥问题。 你将项目工程升级了么?是不是升的apple芯片的版本? 我无论试多少都不成功,你可以试试将unity工程导入到2021.3.0f1这个版本(apple芯片)

when I use pitaya-cli connect pitaya(use protobuff and websocket), it’ll be error。To fix this promble you need overwride `ProtoClient.ConnectToWS` 。

当客户端断开时,服务器的websocket或tcp是会断开的,这时会影响如下方法 ``` //设置该Server的连接断开时的Hook函数 func (s *Server) SetOnConnStop(hookFunc func(ziface.IConnection)) { s.OnConnStop = hookFunc } ``` 你可以如下示例这样去注册一下事件 ``` func main() { //创建服务器句柄 s := znet.NewServer() s.SetOnConnStop(OnConnectionStop) } //当客户端断开连接的时候的hook函数 func OnConnectionStop(conn ziface.IConnection) {...

先要初始化 如: ``` var Scheduler *ztimer.TimerScheduler func init() { Scheduler = ztimer.NewAutoExecTimerScheduler() } ``` **************************************** ``` 然后注册方法如下: f1 := ztimer.NewDelayFunc(func(v ...interface{}) { log.Println("aaaaaa") }, []interface{}{}) f2 := ztimer.NewDelayFunc(func(v ...interface{}) {...