Search Unity

GetComponent in JS quick help

Discussion in 'Scripting' started by Noah492, Mar 1, 2015.

  1. Noah492

    Noah492

    Joined:
    Jul 2, 2014
    Posts:
    44
    I have a player and if he collides into a wall, a menu pops up and he loses. I have my menu disabled already. I am currently learning c# and when I had to use js to use my menu asset I got confused.
    upload_2015-2-28_19-5-31.png
    That is the menu I am using. I need to have the Menu Manager script enabled.
    upload_2015-2-28_19-9-27.png
    All my cubes (walls) have the End Game script attached. I need to get the menu object component I think.
    upload_2015-2-28_19-11-37.png
    And here is the End Game script which I need help with. Much thanks if anyone can help me! ☻☺