// Use this for initialization void Start() { enemyParent = ParentUtils.FindEnemyParent(); // get the list of child object spawnPoints = GetComponentsInChildren <SpawnPoint>(); SpawnEnemiesRepeating(); }
// == private methods == private void Start() { enemyParent = ParentUtils.FindEnemyParent(); SpawnRepeating(); }