| using System; | 
| using System.Collections; | 
| using System.Collections.Generic; | 
| using UnityEngine; | 
|   | 
| public class ScrollerData { | 
|     public int index; | 
|     public ScrollerDataType m_ScrollerType = ScrollerDataType.Normal; | 
|     public ScrollerData(int index, Action<CellView> action) | 
|     { | 
|         this.index = index; | 
|         OnClick = action; | 
|     } | 
|   | 
|     public CellInfo? info; | 
|   | 
|     public Action<CellView> OnClick; | 
| } | 
|   | 
| public class ScrollerHeaderData : ScrollerData | 
| { | 
|     public ScrollerHeaderData(int index, Action<CellView> action = null) :base(index, action) | 
|     { | 
|         m_ScrollerType = ScrollerDataType.Header; | 
|     } | 
| } | 
|   | 
| public class ScrollerTailData : ScrollerData | 
| { | 
|     public ScrollerTailData(int index, Action<CellView> action = null) : base(index, action) | 
|     { | 
|         m_ScrollerType = ScrollerDataType.Tail; | 
|     } | 
| } | 
|   | 
| public class ScrollerNormalData : ScrollerData | 
| { | 
|     public ScrollerNormalData(int index, Action<CellView> action = null) : base(index, action) | 
|     { | 
|         m_ScrollerType = ScrollerDataType.Normal; | 
|     } | 
| } | 
| public class ScrollerExtraData : ScrollerData | 
| { | 
|     public ScrollerExtraData(int index, ScrollerDataType type, Action<CellView> action = null) : base(index, action) | 
|     { | 
|         m_ScrollerType = type; | 
|     } | 
| } | 
|   | 
| public enum ScrollerDataType | 
| { | 
|     Header, | 
|     Normal, | 
|     Tail, | 
|     Extra1, | 
|     Extra2, | 
|     Extra3, | 
| } |