Use private modifiers
This commit is contained in:
parent
b2996bc0d9
commit
a3003fe971
|
@ -6,11 +6,17 @@ using TMPro;
|
||||||
|
|
||||||
public class ConfigureNavBar : MonoBehaviour
|
public class ConfigureNavBar : MonoBehaviour
|
||||||
{
|
{
|
||||||
public GameObject canvas1;
|
[SerializeField]
|
||||||
public GameObject canvas2;
|
private GameObject canvas1;
|
||||||
|
|
||||||
public GameObject addressField1;
|
[SerializeField]
|
||||||
public GameObject addressField2;
|
private GameObject canvas2;
|
||||||
|
|
||||||
|
[SerializeField]
|
||||||
|
private GameObject addressField1;
|
||||||
|
|
||||||
|
[SerializeField]
|
||||||
|
private GameObject addressField2;
|
||||||
|
|
||||||
private BoxCollider boxCollider1;
|
private BoxCollider boxCollider1;
|
||||||
private BoxCollider boxCollider2;
|
private BoxCollider boxCollider2;
|
||||||
|
|
|
@ -8,7 +8,7 @@ public class ConfigureObservers : MonoBehaviour
|
||||||
{
|
{
|
||||||
private IMixedRealitySpatialAwarenessSystem spatialAwarenessSystem;
|
private IMixedRealitySpatialAwarenessSystem spatialAwarenessSystem;
|
||||||
|
|
||||||
void Start()
|
private void Start()
|
||||||
{
|
{
|
||||||
spatialAwarenessSystem = MixedRealityToolkit.Instance.GetService<IMixedRealitySpatialAwarenessSystem>();
|
spatialAwarenessSystem = MixedRealityToolkit.Instance.GetService<IMixedRealitySpatialAwarenessSystem>();
|
||||||
|
|
||||||
|
|
|
@ -7,8 +7,11 @@ using Microsoft.MixedReality.Toolkit.Utilities.Solvers;
|
||||||
|
|
||||||
public class ConfigureOrbital : MonoBehaviour
|
public class ConfigureOrbital : MonoBehaviour
|
||||||
{
|
{
|
||||||
public GameObject canvas1;
|
[SerializeField]
|
||||||
public GameObject canvas2;
|
private GameObject canvas1;
|
||||||
|
|
||||||
|
[SerializeField]
|
||||||
|
private GameObject canvas2;
|
||||||
|
|
||||||
// public List<GameObject> canvases;
|
// public List<GameObject> canvases;
|
||||||
|
|
||||||
|
|
|
@ -8,10 +8,17 @@ using Microsoft.MixedReality.WebView;
|
||||||
|
|
||||||
public class EndpointLoader : MonoBehaviour
|
public class EndpointLoader : MonoBehaviour
|
||||||
{
|
{
|
||||||
public WebView webView1;
|
[SerializeField]
|
||||||
public WebView webView2;
|
private WebView webView1;
|
||||||
public ServiceDiscovery serviceDiscovery;
|
|
||||||
public ServicesListPopulator servicesListPopulator;
|
[SerializeField]
|
||||||
|
private WebView webView2;
|
||||||
|
|
||||||
|
[SerializeField]
|
||||||
|
private ServiceDiscovery serviceDiscovery;
|
||||||
|
|
||||||
|
[SerializeField]
|
||||||
|
private ServicesListPopulator servicesListPopulator;
|
||||||
|
|
||||||
private bool triedMulticast = false;
|
private bool triedMulticast = false;
|
||||||
private string apiUrl = "http://windows.loca:5000/api/endpoints"; // Typo on purpose
|
private string apiUrl = "http://windows.loca:5000/api/endpoints"; // Typo on purpose
|
||||||
|
@ -124,16 +131,11 @@ public class EndpointLoader : MonoBehaviour
|
||||||
{
|
{
|
||||||
servicesListPopulator.AddItemFromService(service, () =>
|
servicesListPopulator.AddItemFromService(service, () =>
|
||||||
{
|
{
|
||||||
ChangeApiUrl($"http://{service.Host}:{service.Port}{service.Path}");
|
apiUrl = $"http://{service.Host}:{service.Port}{service.Path}";
|
||||||
|
StartCoroutine(LoadEndpoints());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ChangeApiUrl(string newUrl)
|
|
||||||
{
|
|
||||||
apiUrl = newUrl;
|
|
||||||
StartCoroutine(LoadEndpoints());
|
|
||||||
}
|
|
||||||
|
|
||||||
public void ReloadEndpoints()
|
public void ReloadEndpoints()
|
||||||
{
|
{
|
||||||
triedMulticast = false;
|
triedMulticast = false;
|
||||||
|
|
|
@ -3,10 +3,10 @@ using System.Collections.Generic;
|
||||||
|
|
||||||
public class MdnsService
|
public class MdnsService
|
||||||
{
|
{
|
||||||
public string IpAddress { get; set; }
|
public string IpAddress { get; }
|
||||||
public int Port { get; set; }
|
public int Port { get; }
|
||||||
public string Path { get; set; }
|
public string Path { get; }
|
||||||
public string Host { get; set; }
|
public string Host { get; }
|
||||||
|
|
||||||
public MdnsService(string ipAddress, int port, string path, string host)
|
public MdnsService(string ipAddress, int port, string path, string host)
|
||||||
{
|
{
|
||||||
|
|
|
@ -6,25 +6,14 @@ public class ScrollablePagination : MonoBehaviour
|
||||||
[SerializeField]
|
[SerializeField]
|
||||||
private ScrollingObjectCollection scrollView;
|
private ScrollingObjectCollection scrollView;
|
||||||
|
|
||||||
public ScrollingObjectCollection ScrollView
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
if (scrollView == null)
|
|
||||||
{
|
|
||||||
scrollView = GetComponent<ScrollingObjectCollection>();
|
|
||||||
}
|
|
||||||
return scrollView;
|
|
||||||
}
|
|
||||||
set
|
|
||||||
{
|
|
||||||
scrollView = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public void ScrollByTier(int amount)
|
public void ScrollByTier(int amount)
|
||||||
{
|
{
|
||||||
Debug.Assert(ScrollView != null, "Scroll view needs to be defined before using pagination.");
|
if (scrollView == null)
|
||||||
|
{
|
||||||
|
Debug.LogError("ScrollingObjectCollection is not set.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
scrollView.MoveByTiers(amount);
|
scrollView.MoveByTiers(amount);
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -6,7 +6,8 @@ using System;
|
||||||
|
|
||||||
public class WebViewBrowser : MonoBehaviour
|
public class WebViewBrowser : MonoBehaviour
|
||||||
{
|
{
|
||||||
public TMP_InputField URLField;
|
[SerializeField]
|
||||||
|
private TMP_InputField URLField;
|
||||||
|
|
||||||
private void Start()
|
private void Start()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue