C# Class UnityPlatformer.Fence

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

Méthodes publiques

Méthode Description
DisableFence ( Character p ) : void

notify character that is out a Fence

Dismount ( Character p ) : void

notify character that must exit Fence state

EnableFence ( Character p ) : void

notify character that is in a Fence

OnTriggerStay2D ( Collider2D o ) : void

Check user Bound (EnterAreas) is completely inside the Fence Area if it's true -> EnableFence if it's false -> DisableFence

Start ( ) : void

Force PolygonCollider2D to be a trigger

Private Methods

Méthode Description
OnDrawGizmos ( ) : void

Method Details

DisableFence() public méthode

notify character that is out a Fence
public DisableFence ( Character p ) : void
p Character
Résultat void

Dismount() public méthode

notify character that must exit Fence state
public Dismount ( Character p ) : void
p Character
Résultat void

EnableFence() public méthode

notify character that is in a Fence
public EnableFence ( Character p ) : void
p Character
Résultat void

OnTriggerStay2D() public méthode

Check user Bound (EnterAreas) is completely inside the Fence Area if it's true -> EnableFence if it's false -> DisableFence
public OnTriggerStay2D ( Collider2D o ) : void
o UnityEngine.Collider2D
Résultat void

Start() public méthode

Force PolygonCollider2D to be a trigger
public Start ( ) : void
Résultat void