Esempio n. 1
0
 public void Load()
 {
     foreach (var f in Main.persoScripts)
     {
         if (f.BaseType == typeof(PersoController) && PersoController.GetPerso(f) != null)
         {
             ResManager.Inst <PersoListFamily>("MapEditor/UI/PersoListFamily", famList).familyType = f;
         }
     }
 }
        private void Update()
        {
            if (!Main.loaded)
            {
                return;
            }

            foreach (var n in persoNames)
            {
                var p = PersoController.GetPerso(n);
                if (p != null)
                {
                    p.graph = this;
                }
            }
        }