Can anyone help me with this problem please? How do you only Instantiate a gameobject only once when pressing a button once? As the example below will instantiate a gameobject every time that a specific button is pressed. Thank you for your help.
How about add a local boolean variable, initialized to false, that is set to true when you press the button the first time and check the variable in your if statement.