Megacity demo game for UOS
您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

20 行
582 B

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