루프 썸네일형 리스트형 unity 루프 loop 루프는 액션을 반복하는 수단 - for 루프, while 루프, DoWhile 루프 1. while 조건이 충족되면 반복합니다. using UnityEngine; using System.Collections; public class WhileLoop : MonoBehaviour { int cupsInTheSink = 4; void Start () { while(cupsInTheSink > 0) { Debug.Log ("I've washed a cup!"); cupsInTheSink--; } } } 2. DoWhile 반복을 한번 하고나서 조건을 충족하는지 검사합니다. ; 세미콜론이 존재하므로 조심합니다. using UnityEngine; using System.Collections; public clas.. 더보기 이전 1 다음