platformer
Public Member Functions | Public Attributes | List of all members
UnityPlatformer.MovingPlatformController Class Reference

Perform actions over a MovingPlatform when something enter/stay/leave More...

Inheritance diagram for UnityPlatformer.MovingPlatformController:
UnityPlatformer.ITriggerAble

Public Member Functions

void OnTriggerEnter2D (Collider2D o)
 OnTriggerEnter2D More...
 
void OnTriggerExit2D (Collider2D o)
 OnTriggerExit2D More...
 
void OnTriggerStay2D (Collider2D o)
 OnTriggerStay2D More...
 

Public Attributes

LayerMask mask
 mask to trigger actions More...
 
List< MovingPlatformtargets
 target Moving Platforms More...
 
MovingPlatformActions onEnter = MovingPlatformActions.Nothing
 Action to perform when enter More...
 
MovingPlatformActions onExit = MovingPlatformActions.Nothing
 Action to perform when leave More...
 
MovingPlatformActions onStay = MovingPlatformActions.Nothing
 Action to perform while stay More...
 

Detailed Description

Perform actions over a MovingPlatform when something enter/stay/leave

NOTE Stay will be executed many times, it's not recommended to use it...

Member Function Documentation

◆ OnTriggerEnter2D()

void UnityPlatformer.MovingPlatformController.OnTriggerEnter2D ( Collider2D  o)
inline

OnTriggerEnter2D

Implements UnityPlatformer.ITriggerAble.

◆ OnTriggerExit2D()

void UnityPlatformer.MovingPlatformController.OnTriggerExit2D ( Collider2D  o)
inline

OnTriggerExit2D

Implements UnityPlatformer.ITriggerAble.

◆ OnTriggerStay2D()

void UnityPlatformer.MovingPlatformController.OnTriggerStay2D ( Collider2D  o)
inline

OnTriggerStay2D

Implements UnityPlatformer.ITriggerAble.

Member Data Documentation

◆ mask

LayerMask UnityPlatformer.MovingPlatformController.mask

mask to trigger actions

◆ onEnter

MovingPlatformActions UnityPlatformer.MovingPlatformController.onEnter = MovingPlatformActions.Nothing

Action to perform when enter

◆ onExit

MovingPlatformActions UnityPlatformer.MovingPlatformController.onExit = MovingPlatformActions.Nothing

Action to perform when leave

◆ onStay

MovingPlatformActions UnityPlatformer.MovingPlatformController.onStay = MovingPlatformActions.Nothing

Action to perform while stay

◆ targets

List<MovingPlatform> UnityPlatformer.MovingPlatformController.targets

target Moving Platforms


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