So I got an answer to my question. I just need to see if it works.
So, I put the second part of the script in, but I don't know where I would put the first part of the script (the one that starts with "ScriptType"). I also don't know if I even put it in the right place.
I replied to the answer by "Commoble" asking where I would put it. Now I just need to wait again.
Now to add to the Statistics script. I added some script that destroys a game object after 3 seconds, if its health variable is equal to or less than 0.
So when its health reaches 0, it disappears after 3 seconds.
The 3 seconds allows for death sounds and anything else that might happen when an enemy dies.
Next class I will hopefully be able to continue with the raycast script.
No comments:
Post a Comment