DoopelPonger
Classes | Public Member Functions | Public Attributes | List of all members
CoopLaserAttack Class Reference

Attack laser fired by Schmitty Doop. It is a long rectangle shape thing that comes out of Schmitty Doop's ear. More...

Inheritance diagram for CoopLaserAttack:
Inheritance graph
[legend]
Collaboration diagram for CoopLaserAttack:
Collaboration graph
[legend]

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
 

Detailed Description

Attack laser fired by Schmitty Doop. It is a long rectangle shape thing that comes out of Schmitty Doop's ear.

Member Function Documentation

◆ Awake()

void CoopLaserAttack.Awake ( )

Initialize the references needed by the laser attack.

◆ FixedUpdate()

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.

◆ Init()

void CoopLaserAttack.Init ( )

Initialize the values used by the laser attack.

Member Data Documentation

◆ beamCapLength

float CoopLaserAttack.beamCapLength

The size of the cap on the x axis.

◆ downParticleSystem

ParticleSystem CoopLaserAttack.downParticleSystem

The particles that should be played in the negative y direction to make the laser look a little better.

◆ endLineRenderer

LineRenderer CoopLaserAttack.endLineRenderer

The ending cap on the line renderer to make the laser look more like a cylinder

◆ growthRate

float CoopLaserAttack.growthRate

How fast the laser should expand coming out of Schmitty Doop

◆ hitscanLayer

LayerMask CoopLaserAttack.hitscanLayer

The layer that should be hit by the laser (i.e. the player)

◆ mainLineRenderer

LineRenderer CoopLaserAttack.mainLineRenderer

The primary rectangle used to draw the laser.

◆ materials

Material [] CoopLaserAttack.materials

The materials to place on the line renderer one at a time.

◆ materialSwitchTime

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.

◆ maxLength

float CoopLaserAttack.maxLength

The size of the laser on the x axis.

◆ moveVelocity

float CoopLaserAttack.moveVelocity

How fast the laser should move on the x axis.

◆ multiplier

int CoopLaserAttack.multiplier

The size difference between the end cap size and the start cap size.

◆ startLineRenderer

LineRenderer CoopLaserAttack.startLineRenderer

The starting cap on the line renderer to make the laser look more like a cylinder

◆ upParticleSystem

ParticleSystem CoopLaserAttack.upParticleSystem

The particles that should be played in the positive y direction to make the laser look a little better.

◆ width

float CoopLaserAttack.width

The size of the laser on the y axis.


The documentation for this class was generated from the following file: