알 수 없는 사용자 2014. 4. 4. 11:35

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 () {

}


}