Subbed, like what you are doing! Look forward to more, just decided to get serious about trying some unity. Been programming Wpf C# applications, and Mongo db. Ready for something fun!
Welcome aboard! Unity is a tons of fun! What kind of game are you interested to do? 2D or 3D? I already working on the next video. What kind of topic you would like to see a video about? Please, let me know! :)
was there something I was supposed to supposed to do before writing this script? I followed the video from the start but my spawning does not have Time.time being colored like yours, mine is just plain white text same some other things in my script
No this should work. Do you get an error from unity? Or just your IDE not highlights the line? I use visual studio and I have some unity related extensions. Just click the extensions icon on your visual studio and search for unity.
Your videos are boon for beginners like me. I have a doubt if you can help me out. I am trying to change the player prefab every X seconds. For that, I am destroying the previously spawned prefab and instantiating a new prefab. But I don't know how to DESTROY THE PREFAB(not the empty game object on which the script is attached) when i use Destroy(gameobject) in my code, it destroys the empty game object which stores the list of 5 prefabs. How can i destroy previously spawned prefab??
I will have a few questions, first. What is the reason to destroy the player every x seconds? Usually we would destroy the instantiated copy of the prefabs, aka the destroy script would be on the prefab not on the parent GameObject. You probably could just disable the Player Prefab instead of destroying it or even use object pooling. If you hop on to my discord I'm happy to help. You find the link in the top right corner on my channel page.
You also can store a reference of the prefab in a variable, for example: playerClone = Instantiate(player, transform.position, transform.rotation); than you can do. Destroy(playerClone);