少年修仙传客户端代码仓库
client_Wu Xijin
2019-02-25 cdb0198fb8e85811ec1e06b15f36df9cbe0fdb9a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using UnityEngine;
using UnityEngine.UI;
 
using Snxxz.UI;
using System.Collections.Generic;
using System;
 
namespace Snxxz.UI
{
    public class ItemCell : CommonItemBaisc
    {
        private Button _reducebtn;
        public Button reducebtn
        {
            get
            {
                if (_reducebtn == null)
                {
                    var _trans = transform.Find("Reducebtn");
                    _reducebtn = _trans != null ? _trans.GetComponent<Button>() : null;
                }
                return _reducebtn;
            }
        }
 
        public override void Init(ItemModel model,bool isCompare = false, int compareScore = 0)
        {
            base.Init(model, isCompare,compareScore);
            reducebtn.gameObject.SetActive(false);
        }
 
        public override void Init(ItemCellModel model, int compareScore = 0)
        {
            base.Init(model,compareScore);
            reducebtn.gameObject.SetActive(false);
        }
    }
}