using UnityEngine;

using System.Collections;


public class ExWhile : MonoBehaviour {


// Use this for initialization

void Start () {

string[] names = new string[]{

"Hello", "Inha", "Pass","Pass1", "Quit", "Morning" 

} ;

int i = -1;

while(true){

i++;

if(names[i] == "Pass"){

continue;

}

if(names[i] == "Pass1"){

continue;

}

print (names[i]);

if(names[i] == "Quit")

break;

}

}

// Update is called once per frame

void Update () {

}


}

'Computer Language > 유니티' 카테고리의 다른 글

npc 최대값 최소값 이름 출력  (0) 2014.04.04
while문& for문 별찍기 놀이  (0) 2014.04.04
배열  (0) 2014.03.31
C# String Format  (0) 2014.03.31
형변환  (0) 2014.03.31

+ Recent posts