C# Class LaserBeamCylinder2, gmap377_leathGloves_inc

Inheritance: MonoBehaviour
Datei anzeigen Open project: bi3mer/gmap377_leathGloves_inc

Public Properties

Property Type Description
CantPassThrough LayerMask
GrowthRate float

Public Methods

Method Description
OnTriggerEnter ( Collider col ) : void

When an object enters a collider, check to see if it hits a layer in the layer mask

OnTriggerExit ( Collider col ) : void

When the object exits the collider

Start ( ) : void

Used to initialize GrowthRate to the appropriate value

Update ( ) : void

Called every frame. Moves the cylinder to create the growing effect.

Method Details

OnTriggerEnter() public method

When an object enters a collider, check to see if it hits a layer in the layer mask
public OnTriggerEnter ( Collider col ) : void
col Collider The object collided with
return void

OnTriggerExit() public method

When the object exits the collider
public OnTriggerExit ( Collider col ) : void
col Collider The object it collided with
return void

Start() public method

Used to initialize GrowthRate to the appropriate value
public Start ( ) : void
return void

Update() public method

Called every frame. Moves the cylinder to create the growing effect.
public Update ( ) : void
return void

Property Details

CantPassThrough public_oe property

public LayerMask CantPassThrough
return LayerMask

GrowthRate public_oe property

public float GrowthRate
return float