Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

switch statement

int x = Random.Range(0, 5);
switch(x){
case 0:
//preform action if x=0
break;
case 1:
//preform action if x=1
break;
//CONTINUE DOWN
}
 
PREVIOUS NEXT
Tagged: #switch #statement
ADD COMMENT
Topic
Name
7+9 =