using UnityEngine;

using System.Collections;


public class Chap3 : MonoBehaviour {


// Use this for initialization

void Start () {

//bool isStudent = false;

System.Boolean isStudent = false;

int age1 = 10;

int age2 = 30;

if(age1<19)

isStudent = true;

else

isStudent = false;

print ("age1 isStudent ="  + isStudent);

if(age2<19)

isStudent = true;

else

isStudent = false;

print ("age2 isStudent ="  + isStudent);

}

// Update is called once per frame

void Update () {

}


int age1 = 10;

bool isArmy = 20 <=age1  && age1 < 30;

print("age1 isStudent = " + isArmy);



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

C# String Format  (0) 2014.03.31
형변환  (0) 2014.03.31
이스케이프 문자  (0) 2014.03.31
문자형  (0) 2014.03.31
실수를 많이 해서 실수형.  (0) 2014.03.31

+ Recent posts