My first question here, new to unity, so excited! Quick one though;
I’m making a 2D game. I have a prefab of the free 2D dragon asset. How can I spawn the same object from left to right, multiple times at random y axis within the range of the screen height(orientation landscape). Have it move across the screen to the other side and then destroy it after it crosses the screen.
Please, find attached an image of a visual representation of what I’m trying to achieve. How do I implement this please using C#. I need to instantiate the prefab at runtime and then move it across, all using code or if there’s a better way to do this, I’ll really appreciate the assistance.
Welcome brother :)
– shrinath-kopare