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

When colliding with an object it checks to see if that object has the BallColorWaveManager attached and tells it to start splashing the color. More...

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

Public Member Functions

void OnCollisionEnter2D (Collision2D collision)
 Check if the object colliding has a BallColorWaveManager attached. If it does send the ballLightInformation to it, which starts the color splash. More...
 

Public Attributes

BallLightInformation ballLightInformation
 

Detailed Description

When colliding with an object it checks to see if that object has the BallColorWaveManager attached and tells it to start splashing the color.

Member Function Documentation

◆ OnCollisionEnter2D()

void BounceLightEmitter.OnCollisionEnter2D ( Collision2D  collision)

Check if the object colliding has a BallColorWaveManager attached. If it does send the ballLightInformation to it, which starts the color splash.

Parameters
collisionObject that ran into the collider.

Member Data Documentation

◆ ballLightInformation

BallLightInformation BounceLightEmitter.ballLightInformation

The color information to splash through the color changing material.


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