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
Exibir arquivo 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_oe property

To avoid memory spikes.
public bool currentlySpawning
return bool

initialPassengerForce public_oe property

public float initialPassengerForce
return float

passengerPrefab public_oe property

public GameObject,UnityEngine passengerPrefab
return UnityEngine.GameObject

pooledAmount public_oe property

public int pooledAmount
return int

rayCastLength public_oe property

public float rayCastLength
return float

spawnAsSpray public_oe property

public bool spawnAsSpray
return bool

spawnHelperLaser public_oe property

public Renderer,UnityEngine spawnHelperLaser
return UnityEngine.Renderer

spawnLaserAlpha public_oe property

public float spawnLaserAlpha
return float

spawnRateInSeconds public_oe property

public float spawnRateInSeconds
return float