public void Awake() { UIAdd.DicClear(); foreach (UIType t in Enum.GetValues(typeof(UIType))) { UIAdd.Load <Component>(t); } m_TwBtn = UIAdd.Get <TowerBtn>(UIType.TowerBtn); m_SeeUi = UIAdd.Get <SeeUI>(UIType.SeeUI); m_SynergyUI = UIAdd.Get <SynergyUI>(UIType.SynergyUI); }
public void Init() { DataMng.AddTable(TableType.WeaponTable); DataMng.AddTable(TableType.ArmorTable); DataMng.AddTable(TableType.AccessoryTable); DataMng.AddTable(TableType.PortionTable); foreach (UIType t in Enum.GetValues(typeof(UIType))) { UIAdd.Load <Component>(t); } m_MakeBoss = FindObjectOfType <MonsterManager>(); }