C# Class UnityPlatformer.MovingPlatformController

Inheritance: UnityEngine.MonoBehaviour, ITriggerAble
Show file Open project: llafuente/unity-platformer

Public Properties

Property Type Description
onEnter MovingPlatformActions
onExit MovingPlatformActions
onStay MovingPlatformActions
targets List

Public Methods

Method Description
DoAction ( MovingPlatformActions action ) : void
OnTriggerEnter2D ( Collider2D o ) : void
OnTriggerExit2D ( Collider2D o ) : void
OnTriggerStay2D ( Collider2D o ) : void

Method Details

DoAction() public method

public DoAction ( MovingPlatformActions action ) : void
action MovingPlatformActions
return void

OnTriggerEnter2D() public method

public OnTriggerEnter2D ( Collider2D o ) : void
o UnityEngine.Collider2D
return void

OnTriggerExit2D() public method

public OnTriggerExit2D ( Collider2D o ) : void
o UnityEngine.Collider2D
return void

OnTriggerStay2D() public method

public OnTriggerStay2D ( Collider2D o ) : void
o UnityEngine.Collider2D
return void

Property Details

onEnter public property

Action to perform when enter
public MovingPlatformActions onEnter
return MovingPlatformActions

onExit public property

Action to perform when leave
public MovingPlatformActions onExit
return MovingPlatformActions

onStay public property

Action to perform while stay
public MovingPlatformActions onStay
return MovingPlatformActions

targets public property

target Moving Platforms
public List targets
return List