mirror of
				https://github.com/DerTyp7/defrain-shooter-unity.git
				synced 2025-10-31 05:27:07 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			337 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			337 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| using Mirror;
 | |
| using UnityEngine.UI;
 | |
| using UnityEngine;
 | |
| 
 | |
| public class HostBtnScript : MonoBehaviour
 | |
| {
 | |
|     private void Start()
 | |
|     {
 | |
|         gameObject.GetComponent<Button>().onClick.AddListener(HostServer);
 | |
|     }
 | |
| 
 | |
|     public void HostServer()
 | |
|     {
 | |
|         GameObject.Find("GameManager").GetComponent<JoinLeaveManager>().Host();
 | |
|     }
 | |
| }
 | 
