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...
When colliding with an object it checks to see if that object has the BallColorWaveManager attached and tells it to start splashing the color.
◆ 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
-
collision | Object that ran into the collider. |
◆ ballLightInformation
The color information to splash through the color changing material.
The documentation for this class was generated from the following file: