wangguan
2020-12-29 452c75675679c44cc39b04bdb7d330d7c5c14d5c
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
using UnityEngine;
using System.Collections;
using EnhancedUI.EnhancedScroller;
 
namespace EnhancedScrollerDemos.MultipleCellTypesDemo
{
    /// <summary>
    /// This is the base class for the different cell types. We use a base class
    /// to make calling SetData easier in the demo script.
    /// </summary>
    public class CellView : EnhancedScrollerCellView
    {
        /// <summary>
        /// Internal reference to our base data class
        /// </summary>
        protected Data _data;
 
        /// <summary>
        /// Sets the data for the cell view. Note that the base data class is passed in,
        /// but through polymorphism we will actually pass the inherited data classes
        /// </summary>
        /// <param name="data"></param>
        public virtual void SetData(Data data)
        {
            _data = data;
        }
    }
}