Add this zone to a trigger collider and it'll automatically trigger a crouch on your 3D character on entry
More...
Add this zone to a trigger collider and it'll automatically trigger a crouch on your 3D character on entry
◆ OnTriggerEnter()
virtual void MoreMountains.TopDownEngine.CrouchZone.OnTriggerEnter |
( |
Collider |
collider | ) |
|
|
protectedvirtual |
On enter we force crouch if we can
- Parameters
-
◆ OnTriggerExit()
virtual void MoreMountains.TopDownEngine.CrouchZone.OnTriggerExit |
( |
Collider |
collider | ) |
|
|
protectedvirtual |
On exit we stop force crouching
- Parameters
-
◆ Start()
virtual void MoreMountains.TopDownEngine.CrouchZone.Start |
( |
| ) |
|
|
protectedvirtual |
On start we make sure our collider is set to trigger
◆ _characterCrouch
The documentation for this class was generated from the following file:
- F:/Github/Store/TopDownEngine/Assets/TopDownEngine/Common/Scripts/Environment/CrouchZone.cs