Пример #1
0
 void Update()
 {
     //todo this could move to using the event instead of polling
     if (allInitStarted && CSVWrangler.Instance().ActiveDownloads.Count == 0 && !allInitComplete)
     {
         UpdateOfCSVsComplete();
     }
 }
Пример #2
0
        //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>());
        }
Пример #3
0
        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;
        }
Пример #4
0
 public void Awake()
 {
     inst = this;
 }