
Unity ์์ Microsoft์ Google์ C# Code Convention์ ๊ธฐ๋ฐ์ผ๋ก Unity ๊ถ์ฅ Coding ๊ท์น์ ์ ๋ฆฌํด์ค ๋ฌธ์๋ฅผ ์ ๊ณตํ๋ค.
Create a C# style guide: Write cleaner code that scales
Get tips from industry experts on how to create a C# code style guide. A style guide can help your team develop a codebase to support the growth of your project to a commercial-scale production.
resources.unity.com
์๋ ๋งํฌ์์ ๋ฒ์ญ์ค ~
C# Coding Convention
C# Coding Convention 1. ๋ช ๋ช ๊ท์น 1) ๋ณ์ ๋ณ์ ์ด๋ฆ์ ๋ช ์ฌ๋ก. bool ๋ณ์๋ ์ ๋์ฌ + ๋์ฌ ์กฐํฉ์ผ๋ก. ex) isDead, isWalking, hasDamageMultiplier public ๋ณ์๋ Pascal ํ๊ธฐ๋ฒ ์ฌ์ฉ private ๋ณ์๋ Camel ํ๊ธฐ๋ฒ๊ณผ ๋ฐ์ค(_)
docs.google.com
private ๋ณ์ _ ๋ถ์ด๋๊ฑฐ, public ๋ณ์ ํ์ค์นผ ๊ท์น ๋ฐ๋ฅด๋๊ฑฐ, { ์๋์ ๋ค๋๊ฑฐ ๋ฑ๋ฑ ๊ณ ์น ๊ฒ ๋ง๋ค..!
'๐ฎ Unity Study > C#' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[Unity][๋์์ธ ํจํด] Builder Pattern(๋น๋ ํจํด) (0) | 2023.09.21 |
---|---|
[C#] Boxing, Unboxing -> Generic (0) | 2023.09.08 |
[C#] Generic, Template (0) | 2023.08.21 |
[C#] ๋ฌธ๋ฒ Keyword (0) | 2023.08.19 |
[C#][์์๊ณผ ์ธํฐํ์ด์ค] virtual, abstract, interface (0) | 2023.08.19 |