Esempio n. 1
0
        private IEnumerator StartSimulation()
        {
            yield return(StartCoroutine(SchedulerTest()));

            yield return(StartCoroutine(RouterTest()));

            yield return(StartCoroutine(TimeScaleTest()));

            if (_TestStatus[0] && _TestStatus[1] && _TestStatus[2])
            {
                StartScreen.OnPlay();
            }
        }
Esempio n. 2
0
        private void GoBack()
        {
            if (schedulerStatus.Status && !string.IsNullOrWhiteSpace(schedulerInput.text))
            {
                JobManager.SchedulerURL = schedulerInput.text;
                schedulerPlaceholder.SetText(JobManager.SchedulerURL);
            }
            else
            {
                schedulerInput.text = null;
                schedulerPlaceholder.SetText(JobManager.DEFAULT_URL);
            }

            if (routerStatus.Status && !string.IsNullOrWhiteSpace(routerInput.text))
            {
                RouteManager.RouterURL = routerInput.text;
                routerPlaceholder.SetText(RouteManager.RouterURL);
            }
            else
            {
                routerInput.text = null;
                routerPlaceholder.SetText(RouteManager.DEFAULT_URL);
            }

            if (timeScaleStatus.Status && !string.IsNullOrWhiteSpace(syncInput.text))
            {
                TimeKeeper.SyncURL = syncInput.text;
                syncPlaceholder.SetText(TimeKeeper.SyncURL);
            }
            else
            {
                syncInput.text = null;
                syncPlaceholder.SetText(TimeKeeper.DEFAULT_URL);
            }

            StartScreen.ShowMain();
        }
Esempio n. 3
0
 private static void GoBack() => StartScreen.ShowMain();