using UnityEngine;

using System.Collections;


public class script : MonoBehaviour {

public GameObject[] Robot;

int HP;

// Use this for initialization

void Start () {

GameObject robot = GameObject.FindGameObjectWithTag("Sphere");

robot.SetActive(false);

}

// Update is called once per frame

void Update () {

if(Time.time > 2.0f){

GameObject robot1 = GameObject.Find("Sphere");

robot1.tag = "Sphere";

robot1.SetActive(false);

}

}

}


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

생명 주기와 색깔 바꾸기  (0) 2014.05.23
로그 찍기  (0) 2014.05.23
이것만은 알고갚시다. 9장.  (0) 2014.05.20
남은 시간 출력 하기. 그외 시간 함수  (0) 2014.05.20
프로퍼티  (0) 2014.05.20

+ Recent posts