16 lines
		
	
	
		
			271 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			271 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| using System.Collections;
 | |
| using UnityEngine;
 | |
| 
 | |
| namespace Assets.Scripts
 | |
| {
 | |
|     public class DropdownMenu : MonoBehaviour
 | |
|     {
 | |
| 
 | |
|         public GameObject panel;
 | |
| 
 | |
|         public void ToggleMenu()
 | |
|         {
 | |
|             panel.SetActive(!panel.activeSelf);
 | |
|         }
 | |
|     }
 | |
| } | 
