Initial
This commit is contained in:
commit
36a53f343e
1 changed files with 300431 additions and 0 deletions
24
UnityProject/Assets/Scripts/menu/clientMenu.cs
Normal file
24
UnityProject/Assets/Scripts/menu/clientMenu.cs
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Networking;
|
||||
using UnityEngine.UI;
|
||||
|
||||
|
||||
[NetworkSettings(channel = 0, sendInterval = 0)]
|
||||
public class clientMenu : NetworkBehaviour
|
||||
{
|
||||
public TrafficController traffic;
|
||||
public Text errorField;
|
||||
public GameObject next;
|
||||
public bool hasStarted = false;
|
||||
public NetworkManager network;
|
||||
|
||||
public void joinServer (string address)
|
||||
{
|
||||
network.networkAddress = address;
|
||||
network.StartClient();
|
||||
|
||||
errorField.text = "Connecting...";
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue