using System; using UnityEngine; /// /// A ScriptableObject for storing a set of prefabs related to a single level. /// /// /// This class is used to manage a collection of prefabs that are associated with a single level. /// It includes functionality to initialize and access the prefab set. /// [CreateAssetMenu(menuName = "Single Level Prefab Set")] public class BlocksSet : ScriptableObject { public GameObject[] prefabs; [NonSerialized] public int prefabSize = 0; /// /// Initializes the prefab set. /// /// /// This method calculates and stores the size of the prefab set. /// public void InitializeBlocksSet() { // get prefab size prefabSize = prefabs.Length; } }