GetEnemyPrefab
function in EnemyFactory
Declaration
public GameObject GetEnemyPrefab(string enemyType);
Parameters
enemyType
Type of enemy you want to get Prefab of
Returns
GameObject - Returns a Prefab given an enemy type
Description
Returns dictionary of enemy prefabs. Strings are enemy type, and GameObject are enemy Prefabs.
Last updated