Exemplo n.º 1
0
        public void RegisterListObject(ListComponent listComponent)
        {
            int ID = GetNextID();

            objects.Add(ID, listComponent);
            listComponent.SetId(ID);
            if (listComponent.GetType() == typeof(Row))
            {
                ((Row)listComponent).SetId(ID);
                //Debug.Log("Row: " + ((Row)listComponent).Get(0).Data.GetLabel());
            }
            else if (listComponent.GetType() == typeof(SubList))
            {
                ((SubList)listComponent).SetId(ID);
            }
            //Debug.Log("Current Id: " + ID + "("+listComponent.GetId()+")"+ " Total objects: " + objects.Count);
        }