C#
残魅灬红尘客
记录游戏开发之路
展开
-
C# 使用Protobuf产生的堆栈溢出问题 Stack overflow.
直接说明情况:[ProtoBuf.ProtoContract][ProtoBuf.ProtoInclude(11, typeof(Cat))][ProtoBuf.ProtoInclude(12, typeof(Dog))]public abstract class Animal{[ProtoBuf.ProtoMember(1)]public string name;[ProtoBuf.ProtoMember(2)]public int sex;}[ProtoBuf.ProtoContr原创 2022-02-15 14:03:12 · 425 阅读 · 0 评论 -
Unity连接Mysql数据库
下载对应版本的dll文件,包括Unity版本和MysqlServer版本本项目使用的是MysqlServer8.0Unity2020.3.21所以下载的dll文件需要满足这两个版本1.mysql8.0以上2.4.5以及4.5以下(只是猜测,4.6以上unity也确实不能识别)综上,选择了8.0.11版本,网址如下https://downloads.mysql.com/archives/c-net/下面是具体脚本:using MySql.Data.MySqlClient;using Sy原创 2022-01-25 17:46:02 · 3586 阅读 · 0 评论 -
C# 常用Github工程地址
基于C#实现的RPC项目https://github.com/Cysharp/MagicOnionhttps://github.com/supperlitt/tcp_all原创 2021-11-26 14:34:24 · 284 阅读 · 0 评论