当带有私有访问修饰符的变量被赋值,但是这个值没有在项目的任何脚本中使用时,就会出现CS0414警告。 注意:没有定义访问修饰符的变量默认为私有的。 这就是示例中出现的警告: warning CS0414: The private field `ExampleScript.rigidbodyPlayer' is assigned but its value is never used 解决方案 在脚本中添加更改...
你这是警告,不是报错,这只是说你的代码不规范,clear掉就好了 登录百度帐号 下次自动登录 忘记密码? 扫二维码下载贴吧客户端 下载贴吧APP看高清直播、视频! 贴吧页面意见反馈 违规贴吧举报反馈通道 贴吧违规信息处理公示1 2 下一页 尾页 28回复贴,共2页 ,跳到 页确定 <<返回unity3d吧 ©2022 Baidu贴吧协议|...
We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up Reseting focus {...
= 0) // 忽略英雄皮肤 cardsDbId.Add(dbid); } } } return cardsDbId; } //虚假结果,指定稀有度 public static int GetRandomCardID(TAG_RARITY rarity) { int dbid; List<int> dbids = GetCardsDbId(); while (true) { dbid = dbids[UnityEngine.Random.Range(0, dbids.Count)]; if (Def...