알 수 없는 사용자 2014. 3. 31. 11:27

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);