void FinishSendDivisionRPC(int InDivState) { bGettingDivision = false; try { using (Stream stream = Global.GenerateStreamFromString(AllDataBuilderString)) Global.AllData = TournamentData.Load(stream); } catch (Exception e) { Debug.Log("Exception in FinishSendDivisionRPC: " + e.Message); } Global.DivDataState = InDivState; LastSyncedDivState = InDivState; JudgerBase Judger = Global.GetActiveJudger(); if (Judger) { SendJudgeNameId(Judger.JudgeGuid, Judger.GetJudgeNameId()); } //Debug.Log(" finished: "); }
public static void LoadTournamentData() { if (Global.AllData == null) { Global.AllData = TournamentData.Load(Application.persistentDataPath + "/save.xml"); if (Global.AllData == null) { Global.AllData = new TournamentData(); } } LoadNameData(); }