//not serialized... private void Awake() { //SetSpawnList(); if (spawnContainer == null) { spawnContainer = transform; } MathFs.SetList(ref spawns, spawnContainer); }
private void Awake() { spawnPointsParent = transform; //spawnPoints = new Transform[spawnPointsParent.childCount]; zonesManagers = new ZonesManager[spawnPointsParent.childCount]; for (int i = 0; i < zonesManagers.Length; i++) { zonesManagers[i] = spawnPointsParent.GetChild(i).GetComponent <ZonesManager>(); } zonesManagers = MathFs.RandomizeArray(zonesManagers); }