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(this T[] array) { return array[Random.Range(0, array.Length)]; } }