Unity 3d obje yoketme (object destroyer)

                          Unity 3d obje yoketme
        

        // Kills the game object
        // obje yokolur.
 Destroy (gameObject);

 // Removes this script instance from the game object
        // Bu kodu siler.
 Destroy (this);

 // Removes the rigidbody from the game object
        // Compenenti kaldırır.
 Destroy (rigidbody);
 
 // Kills the game object in 5 seconds after loading the object
        // Kodun çalıştırılmasından 5 saniye sonra objeyi yokeder.
 Destroy (gameObject, 5);

Yorumlar

Popüler Yayınlar