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
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
using UnityEngine;
using System.Collections;
 
namespace EnhancedScrollerDemos.MultipleCellTypesDemo
{
    /// <summary>
    /// This set of classes store information about the different rows.
    /// The base data class has no members, but is useful for polymorphism.
    /// </summary>
    public class Data
    {
    }
 
    /// <summary>
    /// This is the data that the header rows will use. It only contains a category
    /// field.
    /// </summary>
    public class HeaderData : Data
    {
        /// <summary>
        /// The category of header for the group
        /// </summary>
        public string category;
    }
 
    /// <summary>
    /// This is the data that will store information about users within a group
    /// </summary>
    public class RowData : Data
    {
        /// <summary>
        /// The name of the user
        /// </summary>
        public string userName;
 
        /// <summary>
        /// The user avatar's path to the sprite resource
        /// </summary>
        public string userAvatarSpritePath;
 
        /// <summary>
        /// The user's high score
        /// </summary>
        public ulong userHighScore;
    }
 
    /// <summary>
    /// This is data for the footer. No actual fields are used in this class,
    /// but we set it up for completeness of the example.
    /// </summary>
    public class FooterData : Data
    {
    }
}