yyl
9 小时以前 5d3366f2e0f687995eb7ad2107c4379fe7acd4e8
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using System;
 
 
public class ScrollItem : MonoBehaviour
{
 
    RectTransform m_RectTransform;
    public RectTransform rectTransform {
        get {
            if (m_RectTransform == null)
            {
                m_RectTransform = this.AddMissingComponent<RectTransform>();
            }
            return m_RectTransform;
        }
    }
 
    public virtual void Display(object _data)
    {
        this.SetActive(true);
    }
 
    public virtual void Dispose()
    {
 
    }
 
    public virtual void OpeningShow()
    {
 
    }
 
    public void LuaDisplay(int index)
    {
        if (luaDisplay != null)
        {
            luaDisplay(index);
        }
    }
 
    public void LuaDispose()
    {
        if (luaDispose != null)
        {
            luaDispose();
        }
    }
 
    Action<int> luaDisplay;
    Action luaDispose;
    public void LuaRegister(Action<int> displayCallBack, Action disposeCallBack)
    {
        luaDisplay = displayCallBack;
        luaDispose = disposeCallBack;
    }
 
}