void Start()
 {
     objectPooler            = ObjectPooler.Instance;
     collisionEvents         = new List <ParticleCollisionEvent>();
     enemyGenerator          = generatorObject.GetComponent <GenerateEnemies>();
     Statics.ScoreController = FindObjectOfType <ScoreController>();
 }
    private void Start()
    {
        DungeonGenerator = FindObjectOfType <DungeonGenerator>();
        GenerateEnemies  = FindObjectOfType <GenerateEnemies>();

        DungeonGenerator.GenerateDungeon(() => GenerateEnemies.SpawnAllEnemies(DungeonGenerator.roomList));
    }
    // Set references
    private void Awake()
    {
        // Validation on Serialize Fields
        //if (allyTempParent == null)
        //Debug.Log("allyTempParent was not initialized correctly in ProceduralGenerationContoller attached to " + this.name);

        // Validation on other Procedural Gen Scripts
        GameObject procGenContObj = this.gameObject;

        _genRoomsRef = procGenContObj.GetComponent <GenerateRooms>();
        if (_genRoomsRef == null)
        {
            Debug.Log("There was no GenerateRooms attached to " + procGenContObj.name);
        }
        _wallsGenRef = procGenContObj.GetComponent <GenerateWalls>();
        if (_wallsGenRef == null)
        {
            Debug.Log("There was no GenerateWalls attached to " + procGenContObj.name);
        }
        _stairsGenRef = procGenContObj.GetComponent <GenerateStairs>();
        if (_stairsGenRef == null)
        {
            Debug.Log("There was no GenerateStairs attached to " + procGenContObj.name);
        }
        _tilesGenRef = procGenContObj.GetComponent <GenerateTiles>();
        if (_tilesGenRef == null)
        {
            Debug.Log("There was no GenerateTiles attached to " + procGenContObj.name);
        }
        _safeRoomGenRef = procGenContObj.GetComponent <GenerateSafeRoom>();
        if (_safeRoomGenRef == null)
        {
            Debug.Log("There was no GenerateSafeRoom attached to " + procGenContObj.name);
        }
        _placeAlliesRef = procGenContObj.GetComponent <PlaceAllies>();
        if (_placeAlliesRef == null)
        {
            Debug.Log("There was no PlaceAllies attached to " + procGenContObj.name);
        }
        _enemiesGenRef = procGenContObj.GetComponent <GenerateEnemies>();
        if (_enemiesGenRef == null)
        {
            Debug.Log("There was no GenerateEnemies attached to " + procGenContObj.name);
        }
    }
 void Start()
 {
     generator = FindObjectOfType <GenerateEnemies>();
 }