private void Init()
    {
        m_ToolBarPanelModel = gameObject.GetComponent <ToolBarPanelModel>();
        m_ToolBarPanelView  = gameObject.GetComponent <ToolBarPanelView>();

        slotList = new List <GameObject>();
    }
示例#2
0
    /// <summary>
    /// 初始化乱七八糟的东西的函数
    /// </summary>
    private void InitOthers()
    {
        m_Model = gameObject.GetComponent <ToolBarPanelModel>();
        m_View  = gameObject.GetComponent <ToolBarPanelView>();


        currWeapon = null;
        slotItems  = new List <GameObject>();
        gunDic     = new Dictionary <GameObject, GameObject>();
        index      = -1;

        isHide = false;
    }
 void Start()
 {
     toolBarPanelView  = gameObject.GetComponent <ToolBarPanelView>();
     toolBarPanelModel = gameObject.GetComponent <ToolBarPanelModel>();
     InitToolBar();
 }