Exemple #1
0
    public void Initialize(int id, GameObject root)
    {
        m_ID         = id;
        m_ObjectRoot = root;
        m_iDeepth    = 0;
        List <UIPanel> tmpPanelList = new List <UIPanel>();

        m_AllPanelsUnderWindow = new List <PanelStruct>();
        ComponentTool.FindAllChildComponents(m_ObjectRoot.transform, ref tmpPanelList);
        for (int i = 0; i < tmpPanelList.Count; ++i)
        {
            PanelStruct elem = new PanelStruct();
            elem.m_Panel         = tmpPanelList[i];
            elem.m_defaultDeepth = tmpPanelList[i].depth;
            m_AllPanelsUnderWindow.Add(elem);
        }
    }
 void Start()
 {
     m_fStartTime = Time.time;
     particleList = new List <ParticleSystem>();
     ComponentTool.FindAllChildComponents <ParticleSystem>(transform, ref particleList);
 }