일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- vsCode
- 2D
- 웹스크래핑
- euler
- PYTHON
- 회전
- 자주 사용하는 Quaternion 함수
- 코딩
- 독립변수
- click
- wsl
- setItem
- Quaternion
- 연습
- 도트
- Unity
- getItem
- Lerp
- javascript
- className
- 종속변수
- jQuery
- topdown
- 도린이
- addEventListener
- intervals
- 픽셀
- classList
- Event
- 탑다운
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