예제 #1
0
        public IEnumerable <(ResourceId, int)> GetRandomResources()
        {
            var size   = Random.Range(1, 3);
            var result = new List <(ResourceId, int)>();

            for (int i = 0; i < size; i++)
            {
                var rnd = ResourceData.GetRandom();
                result.Add((rnd.Id, rnd.Amount));
            }
            return(result);
        }