I have these two classes and both of them don’t show up the arrays on inspector. Does someone can help me out why?
public class TowerSystemManager : MonoBehaviour
{
public LevelTowerSystemController towerType = new LevelTowerSystemController[ 4 ];
}
[System.Serializable]
public class LevelTowerSystemController : MonoBehaviour
{
public GameObject[] towerLevel = new GameObject[ 2 ];
public GameObject this[ int i ]
{
get
{
return towerLevel[ i ];
}
set
{
towerLevel[ i ] = value;
}
}
public int Length
{
get
{
return towerLevel.Length;
}
}
}