Hi guys, I’m new with Unity so don’t be too harsh on me
I have two game objects, they are turned off at the start. With Input.GetButton(“X button”) i want to turn ON game object number one. When I use Input.GetButton(“X button”) another time I want game object number one to turn OFF, and the game object number two to turn ON. If I click again, number two gets OFF , and number one gets ON. And so on. I’m using SetActive function.
If anyone can lead me to how to go about doing this it would be greatly appreciated!