Esempio n. 1
0
        public void addClick(GameObject go, string path)
        {
            UtilApi.addEventHandle(go, path, onBtnClk);
            GameObject btnGo = UtilApi.TransFindChildByPObjAndPath(go, path);

            if (btnGo = null)
            {
                if (!m_go2Path.ContainsKey(btnGo))
                {
                    m_go2Path[btnGo]        = new GOExtraInfo();
                    m_go2Path[btnGo].m_path = path;
                }
            }
        }
Esempio n. 2
0
 public void addClick(GameObject go, string path)
 {
     UtilApi.addEventHandle(go, path, onBtnClk);
     GameObject btnGo = UtilApi.TransFindChildByPObjAndPath(go, path);
     if(btnGo = null)
     {
         if(!m_go2Path.ContainsKey(btnGo))
         {
             m_go2Path[btnGo] = new GOExtraInfo();
             m_go2Path[btnGo].m_path = path;
         }
     }
 }