using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MyCodeStyle : MonoBehaviour {
//Constants : UpperCase SnakeCase
//상수(고정된 수) : 모두 대문자
public const int CONSTANT_FIELD = 56;
//Properties : PascalCase
//속성 : 파스칼 표기법 = 첫글자는 대문자 + 단어마다 대문자
public static MyCodeStyle Instanse { get; private set; }
//Events : PascalCase
//이벤트들도 파스칼 표기법 = 첫글자는 대문자 + 단어마다 대문자
public event EventHandler OnSomethingHappened;
//Fields : camelCase
//필드 : 낙타 표기법 = 첫글자 소문자 + 나머진 파스칼케이스처럼
private float memberVariable;
//Function Names : PascalCase
//함수 이름 : 파스칼 표기법 = 첫글자는 대문자 + 단어마다 대문자
private void Awake() {
Instance = this;
DoSomething(10f);
}
//Function Params: camelCase
//함수 파라미터 : 낙타 표기법 = 첫글자 소문자 + 나머진 파스칼케이스처럼
private void DoSomething(float time) {
// Do something...
memberVariable = time + Time.deltatime;
if (memberVariable > 0) {
//Do something...
}
}
}
Git Ignore파일
Git 협업 전략
https://i-believe-in-me.tistory.com/148