C# Class LaserBeamCylinder2, gmap377_leathGloves_inc

Inheritance: MonoBehaviour
Afficher le fichier Open project: bi3mer/gmap377_leathGloves_inc

Méthodes publiques

Свойство Type Description
CantPassThrough LayerMask
GrowthRate float

Méthodes publiques

Méthode 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 méthode

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
Résultat void

OnTriggerExit() public méthode

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

Start() public méthode

Used to initialize GrowthRate to the appropriate value
public Start ( ) : void
Résultat void

Update() public méthode

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

Property Details

CantPassThrough public_oe property

public LayerMask CantPassThrough
Résultat LayerMask

GrowthRate public_oe property

public float GrowthRate
Résultat float