|
|
|
|
|
|
internal static readonly List<StaggeredTile> _staggeredTiles = new List<StaggeredTile> |
|
|
|
{ |
|
|
|
StaggeredTile.count(2, 2), |
|
|
|
// StaggeredTile.count(2, 1),
|
|
|
|
StaggeredTile.count(2, 1), |
|
|
|
// StaggeredTile.count(1, 2),
|
|
|
|
// StaggeredTile.count(1, 1),
|
|
|
|
// StaggeredTile.count(2, 2),
|
|
|
|
|
|
|
// StaggeredTile.count(1, 1),
|
|
|
|
// StaggeredTile.count(4, 1),
|
|
|
|
}; |
|
|
|
|
|
|
|
public static List<Color> colors = new List<Color>() |
|
|
|
{ |
|
|
|
Colors.red, |
|
|
|
Colors.amber, |
|
|
|
Colors.cyan, |
|
|
|
Colors.brown, |
|
|
|
Colors.purpleAccent, |
|
|
|
Colors.blue |
|
|
|
}; |
|
|
|
|
|
|
|
public static List<string> lotties = new List<string>() |
|
|
|
{ |
|
|
|
|
|
|
internal static readonly List<Widget> _tiles = new List<Widget> |
|
|
|
{ |
|
|
|
new _Example01Tile(Colors.green, Icons.widgets, "1055-world-locations.json"), |
|
|
|
// new _Example01Tile(Colors.lightBlue, Icons.wifi, "1370-confetti.json"),
|
|
|
|
new _Example01Tile(Colors.lightBlue, Icons.wifi, "1370-confetti.json"), |
|
|
|
// new _Example01Tile(Colors.amber, Icons.panorama_wide_angle, "1798-check-animation.json"),
|
|
|
|
// new _Example01Tile(Colors.brown, Icons.map, "226-splashy-loader.json"),
|
|
|
|
// new _Example01Tile(Colors.deepOrange, Icons.send, "66992-the-flying-rocket.json"),
|
|
|
|
|
|
|
readonly List<StaggeredTile> _staggeredTiles = new List<StaggeredTile> |
|
|
|
{ |
|
|
|
StaggeredTile.count(2, 2), |
|
|
|
StaggeredTile.count(2, 1), |
|
|
|
new _Example01Tile(Colors.lightBlue, Icons.wifi, "1370-confetti.json"), |
|
|
|
}; |
|
|
|
|
|
|
|
private int count = 4; |
|
|
|
|
|
|
Debug.Log($"x tile count {_tiles.Count}"); |
|
|
|
_tiles.Add( |
|
|
|
new _Example01Tile( |
|
|
|
Colors.cyan, |
|
|
|
Utils.colors[Utils.random.Next(Utils.colors.Count)], |
|
|
|
Icons.widgets, |
|
|
|
Utils.lotties[Utils.random.Next(Utils.lotties.Count)] |
|
|
|
) |
|
|
|