I did add serializedField game object explosion and just add this line after destroy(gameObject)
Instantiate(explosion, transform.position, Quaternion.identity);
is this better or worse and why ?
How to add a screen Shot ?
I did add serializedField game object explosion and just add this line after destroy(gameObject)
Instantiate(explosion, transform.position, Quaternion.identity);
is this better or worse and why ?
How to add a screen Shot ?
Hi Kamel,
If you have copied your image to the clipboard you can just paste it into your post and it will be uploaded. Alternatively you can use the composer tools.
Regarding your question, it is typically better to place your other statements before calling Destroy
on the GameObject that the script is running on.
Hope this helps
See also;