static void Main() { // Initialize wifi NetworkProvider.Initialize(); Start(); //Thread.Sleep(5000); //Stop(); //NetworkProvider.Controller.Disable(); //Thread.Sleep(5000); //NetworkProvider.Controller.Enable(); //Start(); }
void Start() { HideLobby(); NetworkProvider.Initialize(); Screen.sleepTimeout = SleepTimeout.NeverSleep; signOut.gameObject.SetActive(false); if (NetworkProvider.Instance != null) { NetworkProvider.Instance.TrySilentSignIn(); } else { multiPlayer.interactable = false; } }