Exemplo n.º 1
0
 private GameObject create_UIObj(UI_InfoType _infoType, Transform _parent)
 {
     if ((int)_infoType < m_UIObjArr.Length)
     {
         string _uiobjectPos = m_UIObjArr[(int)_infoType];
         return(Instantiate(Resources.Load(_uiobjectPos), _parent == null ? this.transform : _parent) as GameObject);
     }
     return(null);
 }
Exemplo n.º 2
0
    public UIBase FindUIBase(UI_InfoType _infoType)
    {
        for (int i = 0; i < m_pUIBaseList.Count; i++)
        {
            if (m_pUIBaseList[i].uIInfoType == _infoType)
            {
                return(m_pUIBaseList[i]);
            }
        }
#if UNITY_EDITOR
        Debug.LogWarning("uiarr 등록 안됨");
#endif

        return(null);
    }
Exemplo n.º 3
0
    private void make_UI(UI_InfoType _InfoType, Transform _trans, List <object> _obj = null)
    {
        UIBase uIBase = null;

        if (m_pUIStack.Contains(_InfoType))
        {
            uIBase = FindUIBase(_InfoType);
            m_pUIStack.Push(_InfoType);
            uIBase.BringIn();
            return;
        }

        GameObject tempUI = create_UIObj(_InfoType, _trans);

        uIBase = tempUI.GetComponent <UIBase>();

        m_pUIBaseList.Add(uIBase);
        m_pUIStack.Push(_InfoType);

        uIBase.Set_BaseData(_InfoType, _obj);
        uIBase.BringIn();
    }
Exemplo n.º 4
0
 public void addUIMenu(UI_InfoType _infoType, Transform _trans, List <object> _obj = null)
 {
     make_UI(_infoType, _trans, _obj);
 }
Exemplo n.º 5
0
Arquivo: UIBase.cs Projeto: uty6910/JH
 public virtual void Set_BaseData(UI_InfoType _InfoType, List <object> obj = null)
 {
     m_InfoType = _InfoType;
     m_objList  = obj;
 }