TopDown Engine  v4.1
MoreMountains.TopDownEngine.CrouchZone Class Reference

Add this zone to a trigger collider and it'll automatically trigger a crouch on your 3D character on entry More...

Inheritance diagram for MoreMountains.TopDownEngine.CrouchZone:
MoreMountains.TopDownEngine.TopDownMonoBehaviour MoreMountains.Tools.MMMonoBehaviour

Protected Member Functions

virtual void Start ()
 On start we make sure our collider is set to trigger More...
 
virtual void OnTriggerEnter (Collider collider)
 On enter we force crouch if we can More...
 
virtual void OnTriggerExit (Collider collider)
 On exit we stop force crouching More...
 

Protected Attributes

CharacterCrouch _characterCrouch
 

Detailed Description

Add this zone to a trigger collider and it'll automatically trigger a crouch on your 3D character on entry

Member Function Documentation

◆ OnTriggerEnter()

virtual void MoreMountains.TopDownEngine.CrouchZone.OnTriggerEnter ( Collider  collider)
protectedvirtual

On enter we force crouch if we can

Parameters
collider

◆ OnTriggerExit()

virtual void MoreMountains.TopDownEngine.CrouchZone.OnTriggerExit ( Collider  collider)
protectedvirtual

On exit we stop force crouching

Parameters
collider

◆ Start()

virtual void MoreMountains.TopDownEngine.CrouchZone.Start ( )
protectedvirtual

On start we make sure our collider is set to trigger

Member Data Documentation

◆ _characterCrouch

CharacterCrouch MoreMountains.TopDownEngine.CrouchZone._characterCrouch
protected

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