일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- builder
- flash builder
- 경로
- 태그를 입력해 주세요.
- Ane
- 게임
- AIR
- path
- unity3D
- 배열
- swf
- class
- file
- 3d
- XML
- AS3
- sdk
- ios
- 영어
- unity
- 단축키
- smartfoxserver
- Mac
- 아이튠즈
- texture
- Build
- Flash
- iphone
- Android
- Game
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문을 사용하면 된다.