Example #1
0
        public static IEnumerator LoadAsync()
        {
            WaitScreen.Item item = WaitScreen.Add("Loading Multiplayer", null);
            WaitScreen.ShowImmediately();
            Main.StartSession();
            yield return(new WaitUntil(() => Main.InitialSyncCompleted));

            WaitScreen.Remove(item);
            SetLoadingComplete();
        }
Example #2
0
        public static IEnumerator LoadAsync()
        {
            WaitScreen.Item item = WaitScreen.Add("Loading Multiplayer", null);
            WaitScreen.ShowImmediately();
            Main.StartSession();
            yield return(new WaitUntil(() => Main.InitialSyncCompleted == true));

            PropertyInfo property = PAXTerrainController.main.GetType().GetProperty("isWorking");

            property.SetValue(PAXTerrainController.main, false, null);
            WaitScreen.Remove(item);
        }