Accessing Variables From Serializable?

Hey guys, I need to access the variables that I created in this script and get values that will be inputed from the inspector:

var waves : EnemyWaves [];

class EnemyWaves extends System.Object{
	public var waveEnabled : boolean;
  	public var maxEnemies : int;
	public var spawnSetTime : float;
	public var spawnAmount : int;
}

So for eg, I want to do a check to see how many maxEnemies are inputted, I just can’t use the bare maxEnemies var because I get this error:

What to do?

Access it through the array.

waves[index].maxEnemies;

Thank a lot! It works! :slight_smile: