SpotSpawn()

public void SpotSpawn() 
    {
        if (startSpawning)
        {
            BaseEnemyBehavior enemyBehavior = enemyPrefab.GetComponent();

            if (enemyBehavior.SpawnConditions())
            {
                Instantiate(enemyPrefab, spawnSpot.position, Quaternion.identity);
            }
        }
        else if (isBeginning)
        {

        }
    }


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *