Select Git revision
SelectNetwServer_mobile.cs
SelectNetwServer_mobile.cs 13.81 KiB
using UnityEngine;
using UnityEngine.UI; //andr
using static StreamingAssetLoader;
using static UIconfig;
public class SelectNetwServer_mobile : MonoBehaviour
{
public GameObject LPS_B_GObj;
public GameObject Slot1_B_GObj;
public GameObject Slot2_B_GObj;
public GameObject Slot3_B_GObj;
public GameObject Slot4_B_GObj;
public GameObject Slot5_B_GObj;
private Color32 firstColB;
private float transCol;
private ColorBlock tempColB;
void Start()
{
Update();
}
private void Update()
{
UpdateUI_1_f();
UpdateUI_3_f();
UpdateUI_4_f();
UpdateUI_5_f();
UpdateUI_7_f();
UpdateUI_8_f();
}
public void SlotLPS()
{
//CommunicationEvents.ServerAdress = "http://" + CommunicationEvents.ServerAddress1;
CommunicationEvents.ServerRunningA[6] = CommunicationEvents.ServerRunningA[1];
CommunicationEvents.selecIP = CommunicationEvents.lastIP;
CommunicationEvents.IPcheckGeneration++;
NetworkJSON_Save();
//SceneManager.LoadScene("Andr_TreeWorld");
//SceneManager.LoadScene("MainMenue");
}
public void Slot1()
{
//CommunicationEvents.ServerAdress = "http://" + CommunicationEvents.ServerAddress1;
CommunicationEvents.ServerRunningA[6] = CommunicationEvents.ServerRunningA[3];
CommunicationEvents.selecIP = CommunicationEvents.IPslot1;
CommunicationEvents.IPcheckGeneration++;
NetworkJSON_Save();
//SceneManager.LoadScene("Andr_TreeWorld");
//SceneManager.LoadScene("MainMenue");
}