C# Class LaserBeamCylinder, gmap377_leathGloves_inc

Used to scale the cylinder and offset the texture on the mesh for an extra effect
Inheritance: MonoBehaviour
Show file Open project: bi3mer/gmap377_leathGloves_inc

Public Properties

Property Type Description
CantPassThrough LayerMask
CollisionParticle GameObject
GrowRate float
Target string

Public Methods

Method Description
OnDestroy ( ) : void

Called when the laser is destroyed to decrease the laser count by 1

OnTriggerEnter ( Collider col ) : void

Used to handle collisions. Will do damage when the cylinder collider collides with an object matching the Target tag

Start ( ) : void

Used to initialize the Mesh variable

Update ( ) : void

Called once per frame. Used to scale and move the texture on the mesh/

Method Details

OnDestroy() public method

Called when the laser is destroyed to decrease the laser count by 1
public OnDestroy ( ) : void
return void

OnTriggerEnter() public method

Used to handle collisions. Will do damage when the cylinder collider collides with an object matching the Target tag
public OnTriggerEnter ( Collider col ) : void
col Collider The collider the cylinder interacted with
return void

Start() public method

Used to initialize the Mesh variable
public Start ( ) : void
return void

Update() public method

Called once per frame. Used to scale and move the texture on the mesh/
public Update ( ) : void
return void

Property Details

CantPassThrough public property

public LayerMask CantPassThrough
return LayerMask

CollisionParticle public property

public GameObject CollisionParticle
return GameObject

GrowRate public property

public float GrowRate
return float

Target public property

public string Target
return string