using Assets.Scripts; using Assets.Scripts.Devices.Ant; using Assets.Scripts.Scenes; using Assets.Scripts.UI.Prefab.Device; using Mapbox.Examples; using System.Collections; using System.Collections.Generic; using System.Threading.Tasks; using UnityEngine; using UnityEngine.UI; public class MainController : BaseScene { [SerializeField]GameObject root; private Text Version; protected override void Awake() { base.Awake(); Version = this.transform.Find("GameObject").Find("Version").GetComponent(); Version.text = "V"+App.AppVersion; DeviceCache.Init(PFConstants.DeviceCacheFolder); Loom.Initialize(); App.MainDeviceAdapter.StartScan(); } // Start is called before the first frame update async void Start() { UIManager.Instance.Root = root; UIManager.Instance.MainPanel = this.transform.Find("Panel").GetComponent(); UIManager.Instance.ModalsPanel = this.transform.Find("ModalPanel").GetComponent(); #if UNITY_EDITOR if (App.CurrentUser == null) //App.CurrentUser == null { await Login(); } #endif //MainMenu.transform.Find("Home").GetComponent