smartfoxserver 2x server close unity client error 解决sfs 断网后 unity 卡死

smartfoxserver 2x server close unity client error 解决sfs 断网后 unity 卡死

public static void close()
    {
        if (smartFox!=null)
        {
            smartFox.RemoveAllEventListeners();
            smartFox.Disconnect();
            //smartFox.GetSocketEngine().KillConnection();
            smartFox.HandleClientDisconnection("kill");
            print("kill");
        }
        smartFox = null;
    }

1.检测你的代码有没有创建多个 smartFox 实例,因为创建一个实例,开了两个读写线程

2.检测是否重复切换相同 场景,,,,错误原因同上。。。。

3.最后退出游戏了,别忘了关闭。。。

注意:最新的dll才有这个方法 这个蛋痛的官方不给说明

相关文章:

  • 2021-04-22
  • 2021-06-25
  • 2022-12-23
  • 2021-07-15
  • 2021-06-29
  • 2021-06-04
  • 2021-05-19
  • 2021-12-09
猜你喜欢
  • 2021-10-01
  • 2021-04-04
  • 2021-07-16
  • 2021-05-19
  • 2021-11-23
  • 2022-02-20
  • 2021-06-20
相关资源
相似解决方案