Question by 
               Eldwain · Apr 10, 2020 at 10:08 PM · 
                scripting problemui2d gametrigger  
              
 
              Display UI Panel on 2D Box Collider Trigger
I am trying to set up a system so when the player reaches the end of the level it will display a panel telling them "You Win". I want it so when they move through a collider, it will trigger the game to pause, and the panel to display. I am very new to C#, Unity and programming in general. So what i need help with specifically is writting the script to make these events occur.
I understand that I want the object tagged player OnTriggerEnter2D to pause the game, (so set Time.timeScale = 0f) and then to display the UI panel (So setting the game object = "true") But my limited understanding of programming is making it difficult to figure out how to properly structure the script. Any help would be appreciated. 
 
                 
                winconcapture.jpg 
                (44.2 kB) 
               
 
              
               Comment
              
 
               
              Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                