Пример #1
0
        static private iUI CreateUI(string _name)
        {
            GameObject _go = Loader.CreateObject(CFG.UIPath + _name);

            if (_go == null)
            {
                return(null);
            }
            iUI _ui = _go.GetComponent <iUI>();

            UIList.Add(_ui);
            return(_ui);
        }
Пример #2
0
        static private iUI CreateUI(string _name)
        {
            GameObject _go = Loader.Instantiate(CFG.UIPath + _name);

            if (_go == null)
            {
                _go = Loader.Instantiate(CFG.UIPath + _name.Replace("UI_", ""));
                if (_go == null)
                {
                    return(null);
                }
            }
            iUI _ui = _go.GetComponent <iUI>();

            UIList.Add(_ui);
            return(_ui);
        }