Sprite help
So I have a very simple goal in mind, but I'm very new to coding and I can't find a way to successfully do this anywhere. I have a couple sprites already in unity, as GameObjects. All I want to do is, when clicked on, one of the sprites to disappear and the other to take it's place. I figured the easiest way to achieve this was to have the second object have a Z coordinate that places it behind the camera, so that it wasn't visible until brought forward, which is working perfectly. Unfortunately, I cannot find a way to change the positions of the two sprites, may someone please help me?
Your answer
Follow this Question
Related Questions
Please Help. How to add score on collision mobile? 2 Answers
How to make font look sharp and smooth 1 Answer
OnTriggerEnter2D gets executed repeatedly by each collided object with the same Tag 3 Answers
2D Slide Animation 0 Answers
Differentiating similar components attached to a game object in script? 0 Answers