News

Destroy(gameObject); } } } You can now head back to Unity and drag your script onto your 3D Sphere object in the inspector (with the sphere selected) where it says ‘Add ...
Add this script to the pipe sprite in the ... Instantiating creates a new identical copy. In Unity, whenever you use the word gameObject, it refers to the object to which the script is currently ...