Property | Type | Description | |
---|---|---|---|
enemyPrefab | GameObject | ||
health | int | ||
spawnClip | AudioClip | ||
spawnTime | float |
Method | Description | |
---|---|---|
Spawn ( ) : void |
Spawn an instance of the enemy.
|
|
TakeDamage ( int damage ) : void |
Takes the damage.
|