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

Particle system to spawn when a ball is destroyed. More...

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

Public Member Functions

void Awake ()
 Initialize references. More...
 
void PlayParticle (Vector3 spawnPosition, Color color)
 Play the particle system at spawnPosition and change the color of the particles. More...
 

Public Attributes

ParticleSystem particles
 
float waitTime
 

Detailed Description

Particle system to spawn when a ball is destroyed.

This object takes a position and color for the particles and then waits for a set amount of time before returning this object back to the object pooler for future use.

Member Function Documentation

◆ Awake()

void CoopBallHitParticle.Awake ( )

Initialize references.

◆ PlayParticle()

void CoopBallHitParticle.PlayParticle ( Vector3  spawnPosition,
Color  color 
)

Play the particle system at spawnPosition and change the color of the particles.

Parameters
spawnPositionThe location the particle system should be moved to.
colorThe color of the particles being emitted.

Member Data Documentation

◆ particles

ParticleSystem CoopBallHitParticle.particles

ParticleSystem that should be played.

◆ waitTime

float CoopBallHitParticle.waitTime

The amount of time to wait before returning this object to the object pooler for future use.


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