关于命名上的小问题: 之前我是基本没有C#经验就开始用C#写游戏,对命名也没在意,大致就记住method用Pascal(这是对的)variable用camel(这严格上是错的,详细见文档)这节课看到老师的private的filed用的是camel,public的field用的是Pascal。本着实事求是,我跑去查了文档补缺补漏。也发现老师的命名也没有非常严格按照文档来的(也可能是因为视频那个年代没有这个规则,这个我就没有探究了),private的用的是camel casing但还是要在前面加上 _ (underline)。原句是:Use camel casing ("camelCasing") when naming private or internal fields, and prefix them with _. 当然我并没有想钻牛角尖,毕竟文档开头就表明了命名法的目的:They create a consistent look to the code, so that readers can focus on content, not layout. 注重内容,才是最关键的,而非格式。 Reference:docs.microsoft.com/en-us/dotnet/csharp/fundamentals/coding-style/coding-conventions