Question by
vikingallday1 · Jun 12, 2017 at 08:42 AM ·
doordestroygameobjectappear
How do I make one object appear after my Player collides with another object?
I am creating a simple platforming game, and I want to create a "Fake Door" type system, where when the Player hits the 'Fake Door' then that door disappears and the actual door to the next level appears somewhere else. I have the destroy the fake door part down, I just want to know how to make the real door appear.
Here is the code I have: (C#)
void OnCollisionEnter2D(Collision2D Colider) {
if (Colider.gameObject.tag == "Player1") {
Destroy (gameObject);
}
}
EDIT: I have found a way to do it. No need for help. Thanks :)
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612123811im_/https://answers.unity.com/themes/thub/images/avi.jpg)