🎮 Unity 개발/C#

주석

gameuiux 2023. 8. 29. 15:53
728x90
반응형

주석

주석 = 메모 = 무시 = 테스트할 때 코드를 임시로 막아둘 수도 있다.

 

// 주석

 

/*

전체 코드 주석

*/

 

 

코드

public class _04_Comment : MonoBehaviour
{
    // Start is called before the first frame update
    void Start() // 주석 = 메모 = 무시 = 테스트할 때 코드 임시로 막아둘 수도 있음
    {
        Debug.Log("Three");
        Debug.Log("Two");
        Debug.Log("One");
        Debug.Log("Start"); // Game Start? or Start?
        // Debug.Log("Go");

        /*
        전체 코드 주석
        Debug.Log("Ready");
        Debug.Log("Go");
        */
    }
    // Update is called once per frame
    void Update()
    {
        
    }
}

 

 

결과

 

주석 처리되지 않은 디버그 로그만 출력된 모습.

728x90
반응형