摘要:
告警信息: Script error: OnCollisionEnter2DThis message parameter has to be of type: Collision2DThe message will be ignored. 解决: 经查验发现,由于该脚本是粘贴的类似功能脚本,而粘贴前 阅读全文
摘要:
文章参考:Unity中C#类型转换(4)_unity怎么将整数类型改成布尔类型-CSDN博客 基本以变量.To希望转换的类型为方法,搜之前可以自行尝试看看VS的提示。 如: var test; test.ToBoolean(); //将test转换为bool类型 阅读全文