C# Class EnemyFactory

Mostra file Open project: marouen-lamiri/Second-Soul Class Usage Examples

Public Properties

Property Type Description
golemPrefab Golem
impPrefab Imp
skeletonPrefab SkeletalWarrior

Public Methods

Method Description
Start ( ) : void
Update ( ) : void
spawn ( Vector3 spawnPosition, Enemy enemyPrefab ) : void
spawnMob ( Vector3 mobPosition, int mobSize ) : void

Method Details

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

spawn() public method

public spawn ( Vector3 spawnPosition, Enemy enemyPrefab ) : void
spawnPosition Vector3
enemyPrefab Enemy
return void

spawnMob() public method

public spawnMob ( Vector3 mobPosition, int mobSize ) : void
mobPosition Vector3
mobSize int
return void

Property Details

golemPrefab public_oe property

public Golem golemPrefab
return Golem

impPrefab public_oe property

public Imp impPrefab
return Imp

skeletonPrefab public_oe property

public SkeletalWarrior skeletonPrefab
return SkeletalWarrior