일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- javascript
- intervals
- 코딩
- 도트
- 2D
- Quaternion
- Event
- setItem
- Unity
- 탑다운
- wsl
- PYTHON
- jQuery
- 픽셀
- 도린이
- topdown
- className
- click
- 회전
- getItem
- vsCode
- Lerp
- addEventListener
- 독립변수
- 종속변수
- euler
- 웹스크래핑
- classList
- 연습
- 자주 사용하는 Quaternion 함수
Archives
- Today
- Total
목록참조 타입 (1)
쫑가 과정

클래스로 만든 변수는 참조(reference) 타입. 참조 타입의 변수는 실체화된 오브젝트가 아니다. Animal 클래스 생성 using UnityEngine; public class Animal { // 변수 public string name; public string sound; public void PlaySound() { Debug.Log(name + ":" + sound); } } Zoo class 생성 using UnityEngine; public class Zoo : MonoBehaviour { // Start is called before the first frame update void Start() { Animal cat = new Animal(); cat.name = "톰"; cat...
프로그래밍 공부/c#
2021. 11. 12. 21:25