태그된 제품에 대해 수수료를 받습니다.
DataTypes 자료형
정수 1, 10, -20
실수 0.1, 3.141592, -10.24
문자열 "Text is Text.", "123"
문자 'A', 'C'
Boolean true, false
코드
public class _02_DataTypes : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
Debug.Log(1); // 정수
Debug.Log(10);
Debug.Log(-20);
Debug.Log(0.1); // 실수
Debug.Log(3.141592);
Debug.Log(-10.24);
Debug.Log("Text is Text."); // 문자열
Debug.Log("123");
Debug.Log('A'); // 문자
Debug.Log('C');
Debug.Log(true); // Boolean
Debug.Log(false);
}
// Update is called once per frame
void Update()
{
}
}
결과
정수, 실수, 문자열, 문자, Boolean 사용에 따른 결과가 출력된 모습.
태그된 제품에 대해 수수료를 받습니다.