Corgi Engine  v9.1
MoreMountains.CorgiEngine.Water Class Reference

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...

Inheritance diagram for MoreMountains.CorgiEngine.Water:
MoreMountains.CorgiEngine.CorgiMonoBehaviour

Protected Member Functions

virtual void OnTriggerEnter2D (Collider2D collider)
 Triggered when something collides with the water More...
 
virtual void OnTriggerExit2D (Collider2D collider)
 Triggered when something exits the water More...
 

Protected Attributes

CharacterSwim _characterSwim
 

Detailed Description

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.

Member Function Documentation

◆ OnTriggerEnter2D()

virtual void MoreMountains.CorgiEngine.Water.OnTriggerEnter2D ( Collider2D  collider)
protectedvirtual

Triggered when something collides with the water

Parameters
colliderSomething colliding with the water.

◆ OnTriggerExit2D()

virtual void MoreMountains.CorgiEngine.Water.OnTriggerExit2D ( Collider2D  collider)
protectedvirtual

Triggered when something exits the water

Parameters
colliderSomething colliding with the water.

Member Data Documentation

◆ _characterSwim

CharacterSwim MoreMountains.CorgiEngine.Water._characterSwim
protected

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