I have a class inherited from ScriptableObject.
using UnityEngine;
[CreateAssetMenu(menuName = "Level/NewListLevel")]
public class DataListLevels : ScriptableObject
{
public DataLevel[] list;
public enum TypeGameMode
{
standart,
rating,
onekick
}
public TypeGameMode gamemode;
public enum TypeBiome
{
type1,
type2,
type3
}
public TypeBiome biome;
}
It has two enums and an array of Date Level. He looks like this
using UnityEngine;
[System.Serializable]
public class DataLevel
{
public int shotCount;
public GameObject levelPrefab;
}
And I have a problem with getting data from the DataLevel array elements. For example, I need the value of the element shotCount at a specific index in a DateLevel list.
How can I get it?
Thank you.