C# Class UnityPlatformer.BoxTileTrigger

Inheritance: UnityEngine.MonoBehaviour
Afficher le fichier Open project: llafuente/unity-platformer

Méthodes publiques

Méthode 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 méthode

add character to the list
public CharacterEnter ( Character p ) : void
p Character
Résultat void

CharacterExit() public méthode

remove character from the list
public CharacterExit ( Character p ) : void
p Character
Résultat void

GetCenter() public méthode

Get real-world-coordinates center
public GetCenter ( ) : Vector3
Résultat UnityEngine.Vector3

OnDestroy() public méthode

exit all player
public OnDestroy ( ) : void
Résultat void

OnTriggerEnter2D() public méthode

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

OnTriggerExit2D() public méthode

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

Start() public méthode

force BoxCollider2D to be trigger
public Start ( ) : void
Résultat void