C# Class ProjectStorms.PassengerTriggerZone

Inheritance: UnityEngine.MonoBehaviour
Mostrar archivo 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_oe property

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

pooledAmount public_oe property

How many to pool.
public int pooledAmount
return int

spawnOffset public_oe property

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

waveCooldown public_oe property

Cooldown between each wave.
public float waveCooldown
return float

waveSize public_oe property

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