Exemple #1
0
        public void OnThemeChanged()
        {
            plyEdCoroutine obj = this.loader;

            if (obj != null)
            {
                obj.Stop();
            }
            this.loader   = null;
            this.treeView = null;
        }
Exemple #2
0
        public void Clear()
        {
            this._loading = false;
            plyEdCoroutine loader = this._loader;

            if (loader != null)
            {
                loader.Stop();
            }
            this.ev                 = null;
            this.def                = null;
            this.firstBlock         = null;
            this.hasUndefinedblocks = false;
            this.unlinkedBlocks.Clear();
        }
Exemple #3
0
 public static void ReloadBlockDefs()
 {
     if (BloxBlocksList._instance != null)
     {
         plyEdCoroutine obj = BloxBlocksList._instance.loader;
         if (obj != null)
         {
             obj.Stop();
         }
         BloxBlocksList._instance.treeView = null;
         BloxBlocksList._instance.loader   = plyEdCoroutine.Start(BloxBlocksList._instance.Load(), true);
         EditorWindow obj2 = BloxBlocksList._instance.ed;
         if ((object)obj2 != null)
         {
             obj2.Repaint();
         }
     }
 }