C# Class UnityPlatformer.Fence

Inheritance: UnityEngine.MonoBehaviour
ファイルを表示 Open project: llafuente/unity-platformer

Public Methods

Method 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

Method Description
OnDrawGizmos ( ) : void

Method Details

DisableFence() public method

notify character that is out a Fence
public DisableFence ( Character p ) : void
p Character
return void

Dismount() public method

notify character that must exit Fence state
public Dismount ( Character p ) : void
p Character
return void

EnableFence() public method

notify character that is in a Fence
public EnableFence ( Character p ) : void
p Character
return void

OnTriggerStay2D() public method

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
return void

Start() public method

Force PolygonCollider2D to be a trigger
public Start ( ) : void
return void