mirror of
				https://github.com/DerTyp7/defrain-shooter-unity.git
				synced 2025-10-29 20:52:10 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			294 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			294 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()
 | |
|     {
 | |
|         NetworkClient.ConnectHost();
 | |
|     }
 | |
| }
 | 
