-
Stefan Richter authoredStefan Richter authored
SaveNetwAddr_mobile.cs 8.52 KiB
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI; //andr
using UnityEngine.SceneManagement;
using System.IO; //
using UnityEngine.Video;//streaming
using UnityEngine.Networking;
using static CommunicationEvents;
using static UIconfig;
using static StreamingAssetLoader;
using static CheckServer;
public class SaveNetwAddr_mobile : MonoBehaviour
{
public GameObject SaveSlot1_B_GObj;
public GameObject SaveSlot2_B_GObj;
public GameObject SaveSlot3_B_GObj;
private Color32 firstColB;
private float transCol;
private ColorBlock tempColB;
public string Ip1_sup;
public string Ip2_sup;
public string Ip3_sup;
void Start()
{
Ip1_sup = CommunicationEvents.IPslot1;
Ip2_sup = CommunicationEvents.IPslot2;
Ip3_sup = CommunicationEvents.IPslot3;
}
private void Update()
{
UpdateUI_3_f();
UpdateUI_4_f();
UpdateUI_5_f();
}
public void Refresh_pressed()
{
Ip1_sup = CommunicationEvents.IPslot1;
Ip2_sup = CommunicationEvents.IPslot2;
Ip3_sup = CommunicationEvents.IPslot3;
print("se"+Ip1_sup);
}
void UpdateUI_3_f()
{
//------------------------------------------------------------------------
tempColB = SaveSlot1_B_GObj.GetComponent<Button>().colors;
tempColB.pressedColor = colPressed;
tempColB.selectedColor = colSelect;
if (CommunicationEvents.ServerRunningA[3] == 0)
{