DoopelPonger
|
Attack laser fired by Schmitty Doop. It is a long rectangle shape thing that comes out of Schmitty Doop's ear. More...
Public Member Functions | |
void | Awake () |
Initialize the references needed by the laser attack. More... | |
void | Init () |
Initialize the values used by the laser attack. More... | |
void | FixedUpdate () |
Move and/or increase the size of the laser attack. Also check if the laser is overlapping with a player and do damage to them. More... | |
Public Attributes | |
LineRenderer | mainLineRenderer |
LineRenderer | startLineRenderer |
LineRenderer | endLineRenderer |
float | maxLength |
float | beamCapLength |
float | growthRate |
float | width |
float | moveVelocity |
float | materialSwitchTime |
int | multiplier |
LayerMask | hitscanLayer |
ParticleSystem | upParticleSystem |
ParticleSystem | downParticleSystem |
Material [] | materials |
Attack laser fired by Schmitty Doop. It is a long rectangle shape thing that comes out of Schmitty Doop's ear.
void CoopLaserAttack.Awake | ( | ) |
Initialize the references needed by the laser attack.
void CoopLaserAttack.FixedUpdate | ( | ) |
Move and/or increase the size of the laser attack. Also check if the laser is overlapping with a player and do damage to them.
void CoopLaserAttack.Init | ( | ) |
Initialize the values used by the laser attack.
float CoopLaserAttack.beamCapLength |
The size of the cap on the x axis.
ParticleSystem CoopLaserAttack.downParticleSystem |
The particles that should be played in the negative y direction to make the laser look a little better.
LineRenderer CoopLaserAttack.endLineRenderer |
The ending cap on the line renderer to make the laser look more like a cylinder
float CoopLaserAttack.growthRate |
How fast the laser should expand coming out of Schmitty Doop
LayerMask CoopLaserAttack.hitscanLayer |
The layer that should be hit by the laser (i.e. the player)
LineRenderer CoopLaserAttack.mainLineRenderer |
The primary rectangle used to draw the laser.
Material [] CoopLaserAttack.materials |
The materials to place on the line renderer one at a time.
float CoopLaserAttack.materialSwitchTime |
To add a little bit of animation, the material used by the line renderer is switched out. This is the amount of time to wait before using a new material.
float CoopLaserAttack.maxLength |
The size of the laser on the x axis.
float CoopLaserAttack.moveVelocity |
How fast the laser should move on the x axis.
int CoopLaserAttack.multiplier |
The size difference between the end cap size and the start cap size.
LineRenderer CoopLaserAttack.startLineRenderer |
The starting cap on the line renderer to make the laser look more like a cylinder
ParticleSystem CoopLaserAttack.upParticleSystem |
The particles that should be played in the positive y direction to make the laser look a little better.
float CoopLaserAttack.width |
The size of the laser on the y axis.