- Home /
on trigger, button activate change level
hello how do i make this code work, what im trying to do is make it on the trigger the charter has to press Input button "grab" to make the level change.
//Enter poor house 1
function OnTriggerEnter (other : Collider)
{
if (Input.GetButtonDown("grab"))
{
Application.LoadLevel ("poor house 1");
}
}
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613063019im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
standalone dialog 1 Answer
load level when no enemy car are left 2 Answers
Point counter = 0 if change level ... HOW ? 2 Answers
Is it possible to change keyboard input inGame 1 Answer
Changing controls from keyboard to touch in the game 0 Answers