Powenko, Unity Tutorial b0-2,Remove gameobject

December 29, 2011   ·   0 Comments

Screen Shot 2011-12-29 at 11.35.05 AM

below code is demo how to remove gameobject
Remove gameobject

 

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
    void Update() {

    }
    void Awake() {
        Destroy(gameObject);
        Destroy();
        Destroy(rigidbody);
        Destroy(gameObject, 5);
    }
}

sample code: b36_1_input_ray

shareShare on FacebookShare on Google+Share on LinkedInEmail this to someonePrint this pageBuffer this pageDigg thisFlattr the authorShare on RedditPin on PinterestShare on StumbleUponShare on TumblrTweet about this on Twitter

By


Readers Comments (0)


You must be logged in to post a comment.

PowenKo’s Online Store

powenko_arduinoBook
Unity3D4

Amazon

adsbygoogle

Recent Posts

Categories

Amazon