C# Class AsteroidSpawner, MobileGameDevWithUnity1stEd

Inheritance: MonoBehaviour
Show file Open project: thesecretlab/MobileGameDevWithUnity1stEd Class Usage Examples

Public Properties

Property Type Description
asteroidPrefab Rigidbody
radius float
spawnAsteroids bool
spawnRate float
target Transform
variance float

Public Methods

Method Description
CreateNewAsteroid ( ) : void
DestroyAllAsteroids ( ) : void
OnDrawGizmosSelected ( ) : void
Start ( ) : void

Private Methods

Method Description
CreateAsteroids ( ) : IEnumerator

Method Details

CreateNewAsteroid() public method

public CreateNewAsteroid ( ) : void
return void

DestroyAllAsteroids() public method

public DestroyAllAsteroids ( ) : void
return void

OnDrawGizmosSelected() public method

public OnDrawGizmosSelected ( ) : void
return void

Start() public method

public Start ( ) : void
return void

Property Details

asteroidPrefab public property

public Rigidbody asteroidPrefab
return Rigidbody

radius public property

public float radius
return float

spawnAsteroids public property

public bool spawnAsteroids
return bool

spawnRate public property

public float spawnRate
return float

target public property

public Transform target
return Transform

variance public property

public float variance
return float