namespace EnhancedScrollerDemos.Chat { /// /// Super simple data class to hold information for each cell. /// public class Data { /// /// The potential types of a cell /// public enum CellType { Spacer, MyText, OtherText } /// /// The type of the cell /// public CellType cellType; /// /// The text to display (only used on chat cells, not the spacer) /// public string someText; /// /// We will store the cell size in the model so that the cell view can update it. /// Only used on chat cells, not the spacer. Spacer always pulls the size of the scroll rect in the controller. /// public float cellSize; } }