C# Class VehicleSpawner, 04_Squashy-Toad-VR

Inheritance: Spawner
Show file Open project: VirtualRealityDesigner/Squashy-Toad-VR Class Usage Examples

Public Properties

Property Type Description
heightOffset float
length float
maxSpawnTime float
speed float
startOffset float
vehiclePrefabs GameObject[]

Public Methods

Method Description
InstantiateVehicle ( int vehicleIndex ) : void
Start ( ) : void
Update ( ) : void

Private Methods

Method Description
GetPositionOffset ( ) : Vector3
Spawn ( ) : IEnumerator

Method Details

InstantiateVehicle() public method

public InstantiateVehicle ( int vehicleIndex ) : void
vehicleIndex int
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

heightOffset public property

public float heightOffset
return float

length public property

public float length
return float

maxSpawnTime public property

public float maxSpawnTime
return float

speed public property

public float speed
return float

startOffset public property

public float startOffset
return float

vehiclePrefabs public property

public GameObject[] vehiclePrefabs
return GameObject[]