Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.Networking;
- using UnityEngine.UI;
- public class NetworkHUDController : MonoBehaviour
- {
- public NetworkManager networkManager;
- public Button startServerButton;
- public Button connectButton;
- public Text ipAdressText;
- void Start()
- {
- if (Application.platform != RuntimePlatform.WindowsEditor)
- {
- networkManager.networkAddress = "192.168.1.4";
- networkManager.networkPort = 7777;
- networkManager.StartClient();
- GameObject.Find("serverCamera").SetActive(false);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement