Make work with astra
This commit is contained in:
parent
21859bcfb3
commit
c8ee5045e2
1 changed files with 6338 additions and 4613 deletions
|
|
@ -1,33 +1,11 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Networking;
|
||||
using UnityEngine.UI;
|
||||
|
||||
|
||||
[NetworkSettings(channel = 0, sendInterval = 0)]
|
||||
public class serverStartMenu : NetworkBehaviour
|
||||
{
|
||||
public TrafficController traffic;
|
||||
public tweetPoller tweet;
|
||||
public InputField trafficAddress;
|
||||
public InputField eventAddress;
|
||||
|
||||
public GameObject next;
|
||||
|
||||
public NetworkManager network;
|
||||
|
||||
public void createServer ()
|
||||
{
|
||||
if(trafficAddress.text != "")
|
||||
traffic.url = trafficAddress.text;
|
||||
|
||||
if (eventAddress.text != "")
|
||||
tweet.url = eventAddress.text;
|
||||
|
||||
|
||||
network.StartServer();
|
||||
gameObject.SetActive(false);
|
||||
next.SetActive(true);
|
||||
}
|
||||
}
|
||||
fileFormatVersion: 2
|
||||
guid: 02335c5d9c8e07347918bd15ceb1adc2
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
|
|||
Loading…
Reference in a new issue