Exemplo n.º 1
0
    void AddItem(int _id)
    {
        GameObject _obj  = Utils.Spawn(pfItem, root);
        ItemChoose _item = _obj.GetComponent <ItemChoose>();

        _item.Init(_id);
        listItem.Add(_item);
    }
Exemplo n.º 2
0
 public void Select()
 {
     if (current != null)
     {
         current.UnSelect();
     }
     current      = this;
     isSelect     = true;
     framer.color = colorChoose;
     GamePreferences.Instance.customize.index = data.id;
     GamePreferences.Instance.SaveCustomize();
 }