using UnityEngine;
using System.Collections;
public class yulgurhyung : MonoBehaviour {
// Use this for initialization
enum Fruits{Orange, Apple, Banana, Strawberry, Grape};
void Start () {
Fruits ft = Fruits.Apple;
switch(ft)
{
case Fruits.Orange:
print();
break;
case Fruits.Apple:
print();
break;
case Fruits.Banana:
print();
break;
case Fruits.Strawberry:
print();
break;
case Fruits.Grape:
print();
break;
}
}
// Update is called once per frame
void Update () {
//print (Fruits.Orange);
// print (Fruits.Grape);
//print (Fruits.Strawberry);
}
}
'Computer Language > 유니티' 카테고리의 다른 글
out 을 이용하여 메인에서 배열을 써봅시다. (0) | 2014.05.09 |
---|---|
원 구 실린더 계산 하기. base()사용법 (0) | 2014.05.09 |
비행기와 퍼즐 맞추기 (0) | 2014.05.02 |
카메라 좌표찍기 (0) | 2014.05.02 |
달려가는 함수 movetowards (0) | 2014.04.29 |