How can I make a button appear after it collides with a trigger? (JavaScript)
Hello,
I am making a simple game following the tutorial and I finished it, but I want more. I want a collider that when it gets triggered, shows a button to a next level. Now, I made a collider and the button but I am struggling to make a script for it. So I kindly ask if someone could point with a finger to the light and make me a small script for this. I`m a total beginner with coding so I hardly know the basic stuff :(
Here`s the current script I made:
var PickUps : GameObject;
function Start () { gameObject.SetActive ("PickUps") = false; }
function Update () { if (gameObject.PickUps) < 1; { gameObject.SetActive ("PickUps") = true; } }
function PlayGame () { Application.LoadLevel(1);}
Sincerely Pie
Your answer
![](https://koobas.hobune.stream/wayback/20220612135249im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
NavMesh of an automatically generated maze 0 Answers
example of new way to load levels 1 Answer
Menu object not responding 0 Answers
Global Illumination at Runtime 0 Answers
Moving an image on the X axis is not working as it should. 0 Answers