Hey Guys, so I am in the sci-fi part of the Ultimate Guide tutorial... And I was in the part where Jon tells you to try to destroy the hitMarker right?
But I just got a bit confused like... how do you define the best way to destroy something??
For example in the galaxy shooter you destroy things immediately with Destroy(Name.GameObject); and thats all fine and dandy. Or you add a delay, cool.
But like when do you need to use Coroutines to delete something for example, versus creating a new script saying just delete me? Or when do you have to cast the game object?
Jon gives a quick explanation for this but I am having a hard time understanding why and when...
I am still very unsure when I need to create a new script versus when do i try to do something in an existing script? And which one is more optimal for performance?
Like I was watching some videos on scriptable objects for example and ppl that use those are big advocates for keeping every scripting behaviour separate because its easy to reuse things if they have very simple actions in them.
I am a bit confused with all this, probably because I am very new to scripting...
But any comments and thoughts would help a lot.