| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
Tags
- 단축키
- class
- Ane
- 아이튠즈
- unity3D
- file
- path
- Build
- Android
- 경로
- swf
- 배열
- texture
- iphone
- unity
- Flash
- 3d
- Mac
- AS3
- sdk
- Game
- 게임
- 영어
- XML
- ios
- 태그를 입력해 주세요.
- smartfoxserver
- flash builder
- builder
- AIR
Archives
- Today
- Total
상상 너머 그 무언가...
javaScript의 for in 문은 C#에서 foreach 문이다. 본문
for (var emitter in childEmitters) {
// turn them on or off
emitter.emit = on;
}
// turn them on or off
emitter.emit = on;
}
위와 같은 자바스크립트로 작성된 for in 문을
C#에서 동일하게 동작하도록 하러면
foreach (ParticleEmitter emitter in childEmitters) {
// turn them on or off
emitter.emit = on;
}
// turn them on or off
emitter.emit = on;
}
위와 같이 foreach문을 사용하면 된다.