using System.Collections.Generic; using UnityEngine; using UnityObject = UnityEngine.Object; namespace Unity.MegaCity.Utils { /// /// Creates a collection of UnityObject such as Textures in this case. /// public class ResourcePreloader : MonoBehaviour { [SerializeField] List m_Resources = new List(); public void SetResources(IReadOnlyCollection resources) { m_Resources.Clear(); m_Resources.AddRange(resources); } } }