C# Class ProjectStorms.SpawnPassengers

A script to pool and spawn pirate passengers. UPDATE: From now on- use the passenger prefab object instead of primitive cubes.
Inheritance: UnityEngine.MonoBehaviour
Show file Open project: patferguson/Storms-Project

Public Properties

Property Type Description
currentlySpawning bool
initialPassengerForce float
passengerPrefab UnityEngine.GameObject
pooledAmount int
rayCastLength float
spawnAsSpray bool
spawnHelperLaser UnityEngine.Renderer
spawnLaserAlpha float
spawnRateInSeconds float

Public Methods

Method Description
Awake ( ) : void
GetSpawnLaserAlpha ( ) : float
SpawnPassenger ( ) : void
Start ( ) : void
Update ( ) : void

Method Details

Awake() public method

public Awake ( ) : void
return void

GetSpawnLaserAlpha() public method

public GetSpawnLaserAlpha ( ) : float
return float

SpawnPassenger() public method

public SpawnPassenger ( ) : void
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

currentlySpawning public property

To avoid memory spikes.
public bool currentlySpawning
return bool

initialPassengerForce public property

public float initialPassengerForce
return float

passengerPrefab public property

public GameObject,UnityEngine passengerPrefab
return UnityEngine.GameObject

pooledAmount public property

public int pooledAmount
return int

rayCastLength public property

public float rayCastLength
return float

spawnAsSpray public property

public bool spawnAsSpray
return bool

spawnHelperLaser public property

public Renderer,UnityEngine spawnHelperLaser
return UnityEngine.Renderer

spawnLaserAlpha public property

public float spawnLaserAlpha
return float

spawnRateInSeconds public property

public float spawnRateInSeconds
return float