C# Class UnityPlatformer.BoxTileTrigger

Inheritance: UnityEngine.MonoBehaviour
Mostra file Open project: llafuente/unity-platformer

Public Methods

Method Description
CharacterEnter ( Character p ) : void

add character to the list

CharacterExit ( Character p ) : void

remove character from the list

GetCenter ( ) : Vector3

Get real-world-coordinates center

OnDestroy ( ) : void

exit all player

OnTriggerEnter2D ( Collider2D o ) : void

if Hitbox with EnterAreas enter -> CharacterEnter

OnTriggerExit2D ( Collider2D o ) : void

if Hitbox with EnterAreas leave -> CharacterExit

Start ( ) : void

force BoxCollider2D to be trigger

Method Details

CharacterEnter() public method

add character to the list
public CharacterEnter ( Character p ) : void
p Character
return void

CharacterExit() public method

remove character from the list
public CharacterExit ( Character p ) : void
p Character
return void

GetCenter() public method

Get real-world-coordinates center
public GetCenter ( ) : Vector3
return UnityEngine.Vector3

OnDestroy() public method

exit all player
public OnDestroy ( ) : void
return void

OnTriggerEnter2D() public method

if Hitbox with EnterAreas enter -> CharacterEnter
public OnTriggerEnter2D ( Collider2D o ) : void
o UnityEngine.Collider2D
return void

OnTriggerExit2D() public method

if Hitbox with EnterAreas leave -> CharacterExit
public OnTriggerExit2D ( Collider2D o ) : void
o UnityEngine.Collider2D
return void

Start() public method

force BoxCollider2D to be trigger
public Start ( ) : void
return void