Texel 6cc1092872 Initial board state and tile info data setup, unit tests for board setup / serializer
Framework for the full tile type color matching, but it's all data structures and validating the structure
2023-01-24 09:07:23 -05:00

11 lines
280 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
// Helper method for randomly rolling from a generic array
public static class RandomFromArray {
public static T GetRandom<T>(this T[] array) {
return array[Random.Range(0, array.Length)];
}
}