Unity Community

Results 1 to 2 of 2

  1. Posts

    Can't get collision with player controller

    So I'm trying to make it so a player touches a trigger which causes the scene to change.

    I have the default first-person character controller which is tagged as 'Player', and a box collider. I gave the box collider this script:
    1. {
    2.     if(collision.gameObject.tag == "Player")
    3.     {
    4.         Application.LoadLevel("house");
    5.     }
    6. }

    Yet when I touch the box with my controller the scene doesn't change. What gives?

  2. Posts
    Welcome to the forum!

    It is very likely that you find the answer here: Unity Answers.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts