C# Class ProjectStorms.PassengerTriggerZone

Inheritance: UnityEngine.MonoBehaviour
Show file Open project: patferguson/Storms-Project

Public Properties

Property Type Description
passengerPrefab UnityEngine.GameObject
pooledAmount int
spawnOffset UnityEngine.Vector3
waveCooldown float
waveSize int

Public Methods

Method Description
Awake ( ) : void
FixedUpdate ( ) : void
OnTriggerStay ( Collider a_other ) : void

Called when an object enters this trigger.

Start ( ) : void
Update ( ) : void

Private Methods

Method Description
IsPlayer ( Collider a_col ) : bool

Returns whether the input collider is a player.

SpawnPassengerFor ( Transform a_trans ) : void

Spawns a passenger slightly above the input transform.

Method Details

Awake() public method

public Awake ( ) : void
return void

FixedUpdate() public method

public FixedUpdate ( ) : void
return void

OnTriggerStay() public method

Called when an object enters this trigger.
public OnTriggerStay ( Collider a_other ) : void
a_other UnityEngine.Collider
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

passengerPrefab public property

Prefab to use for the passenger.
public GameObject,UnityEngine passengerPrefab
return UnityEngine.GameObject

pooledAmount public property

How many to pool.
public int pooledAmount
return int

spawnOffset public property

Offset to spawn passengers on from the chosen root transform.
public Vector3,UnityEngine spawnOffset
return UnityEngine.Vector3

waveCooldown public property

Cooldown between each wave.
public float waveCooldown
return float

waveSize public property

Number of passengers to be released per wave.
public int waveSize
return int