C# Class AsteroidSpawner, MobileGameDevWithUnity1stEd

Inheritance: MonoBehaviour
Mostra 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_oe property

public Rigidbody asteroidPrefab
return Rigidbody

radius public_oe property

public float radius
return float

spawnAsteroids public_oe property

public bool spawnAsteroids
return bool

spawnRate public_oe property

public float spawnRate
return float

target public_oe property

public Transform target
return Transform

variance public_oe property

public float variance
return float