void Update() { //todo this could move to using the event instead of polling if (allInitStarted && CSVWrangler.Instance().ActiveDownloads.Count == 0 && !allInitComplete) { UpdateOfCSVsComplete(); } }
//this is how you get access to this classes functions static public CSVWrangler Instance() { if (inst != null) { return(inst); } return(inst = UTIL.GetAutoGameRules().GetOrAddComponent <CSVWrangler>()); }
public void OnForceTablesUpdate() { if (allInitComplete) { //already finished and forced reset allInitComplete = false; foreach (GameObject go in flipActiveWhenInited) { if (go != null) { go.SetActive(!go.activeInHierarchy); } } } CSVWrangler.Instance().InitFromSettings(settings); allInitStarted = true; }
public void Awake() { inst = this; }