Replace GameObject

Hi!

I have two GameObject’s, and I would like to replace one with the other with press a key!

Anyone could help me?
Thank you very much!

Hi, like this ?

if no please explain your context…

Hi!

Thank you, yes, something like this, but… with this script I can turn off the GameObject, but then I can’t turn on. So it would be good, but I was wondering if there is a simpler solution when I push of a key once the 1st GameObject is activated, then when I press another key, the 1st GameObject is disappear, and the 2st is activting.

Thank you!