.cerealisapasta
❔ Getting a variable from a GameObject without dragging and dropping it in
Im making a game where asteroids spawn and you have to dodge them. I want them to progressively speed up over time but because they keep being spawned in and deleted, I cant just put the code into its script because its time based and its the time from spawning it in. So I have the code in a Logic Manager. I have the variable I need for it to speed up but I need it to be used in the asteroids and I cant drag and drop it in because again, the timer restarts every time it spawns.
9 replies