Add this class to a body of water. It will handle splash effects on entering/exiting, and allow the player to jump out of it.
More...
Add this class to a body of water. It will handle splash effects on entering/exiting, and allow the player to jump out of it.
◆ OnTriggerEnter2D()
virtual void MoreMountains.CorgiEngine.Water.OnTriggerEnter2D |
( |
Collider2D |
collider | ) |
|
|
protectedvirtual |
Triggered when something collides with the water
- Parameters
-
collider | Something colliding with the water. |
◆ OnTriggerExit2D()
virtual void MoreMountains.CorgiEngine.Water.OnTriggerExit2D |
( |
Collider2D |
collider | ) |
|
|
protectedvirtual |
Triggered when something exits the water
- Parameters
-
collider | Something colliding with the water. |
◆ _characterSwim
The documentation for this class was generated from the following file:
- Assets/CorgiEngine/Common/Scripts/Environment/CharacterOverrides/Water.cs