C# Class EnemySpawner

Inheritance: MonoBehaviour
Show file Open project: GDCASU/Doom_Party Class Usage Examples

Public Properties

Property Type Description
enemyPrefab GameObject
health int
spawnClip AudioClip
spawnTime float

Public Methods

Method Description
Spawn ( ) : void

Spawn an instance of the enemy.

TakeDamage ( int damage ) : void

Takes the damage.

Method Details

Spawn() public method

Spawn an instance of the enemy.
public Spawn ( ) : void
return void

TakeDamage() public method

Takes the damage.
public TakeDamage ( int damage ) : void
damage int Damage.
return void

Property Details

enemyPrefab public property

public GameObject enemyPrefab
return GameObject

health public property

public int health
return int

spawnClip public property

public AudioClip spawnClip
return AudioClip

spawnTime public property

public float spawnTime
return float