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); }
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); }
private void addOne(Beans.Bean b) { addOne(b, false); }