Exemple #1
0
    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);
    }
Exemple #2
0
    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>();
    }