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

Small shock wave effect that is spawned when a player fires a bullet. More...

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

Public Member Functions

void Awake ()
 
void Init ()
 
void FixedUpdate ()
 

Public Attributes

float growthRate
 
float maxSize
 
Material material
 

Detailed Description

Small shock wave effect that is spawned when a player fires a bullet.

Member Function Documentation

◆ Awake()

void Shockwave.Awake ( )

Initialize references.

◆ FixedUpdate()

void Shockwave.FixedUpdate ( )

Grow the shockwave, if the size is at the max, put this back inside the object pooler.

◆ Init()

void Shockwave.Init ( )

Initialize the values needed to start the shockwave.

Member Data Documentation

◆ growthRate

float Shockwave.growthRate

How fast the shockwave should grow.

◆ material

Material Shockwave.material

The shader that applies the shockwave effect.

◆ maxSize

float Shockwave.maxSize

The max size the shockwave should get.


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