private void saveBean(UnityEngine.Object o, string name)
 {
     Beans.Bean b = new Beans.Bean();
     b.instanced    = true;
     b.name         = name;
     b.returnType   = o.GetType();
     b.beanInstance = o;
     BeansRepo.getInstance().addOne(b, true);
 }
示例#2
0
 internal void addOne(Beans.Bean b, bool fouceAdd)
 {
     if (!map.ContainsKey(b.returnType))
     {
         map.Add(b.returnType, new Dictionary <string, Beans.Bean>());
     }
     if (fouceAdd && map[b.returnType].ContainsKey(b.name))
     {
         map[b.returnType].Remove(b.name);
     }
     map[b.returnType].Add(b.name, b);
 }
示例#3
0
 private void addOne(Beans.Bean b)
 {
     addOne(b, false);
 }