21 lines
529 B
C#
21 lines
529 B
C#
|
using System;
|
||
|
using UnityEngine;
|
||
|
|
||
|
[CreateAssetMenu(menuName = "All Level Prefab Set")]
|
||
|
public class LevelsSet : ScriptableObject
|
||
|
{
|
||
|
public BlocksSet[] singleLevelSet;
|
||
|
[NonSerialized] public int levelSize = 0;
|
||
|
|
||
|
// initialization
|
||
|
public void InitializeLevelsSet()
|
||
|
{
|
||
|
// get level size
|
||
|
levelSize = singleLevelSet.Length;
|
||
|
for(int i = 0; i < levelSize; i++)
|
||
|
{
|
||
|
// initialize all single level prefab set
|
||
|
singleLevelSet[i].InitializeBlocksSet();
|
||
|
}
|
||
|
}
|
||
|
}
|