Instantiating & Destroying Game Objects in Unity

INSTANTIATE

FireRight & FireLeft objects, colored red for this example, are the instantiation points for the Laser prefab.
The Spaceship INSTANTIATES the laser prefab whenever the FireLaser function is called.

DESTROY

The laser game objects are destroyed when their vertical coordinate is equal to 8.0f.

--

--

--

Aspiring Game Creator

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Puzzle #10: can you guess the missing number?

Taking advantage of Aerospike’s XDR Enhancements in V5.x to reduce messaging costs

November 29, 2020

The Beauty of Binary Search

Join #ApeAbu Genesis squad Whitelist is open, Join now !

Applying Plugin Orchestration in Apache APISIX

Burst your Power BI reports

DataStax Astra Streaming: Why and How we Built Apache Pulsar-as-a-Service

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Rob George

Rob George

Aspiring Game Creator

More from Medium

Porting VR Games to Oculus Quest

Testing Unity VR Without a Headset.

Unity New Input System

Tips to improve Photon-Networked Unity Games