C# 클래스 UnityPlatformer.Fence

상속: UnityEngine.MonoBehaviour
파일 보기 프로젝트 열기: llafuente/unity-platformer

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
OnDrawGizmos ( ) : void

메소드 상세

DisableFence() 공개 메소드

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

Dismount() 공개 메소드

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

EnableFence() 공개 메소드

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

OnTriggerStay2D() 공개 메소드

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
리턴 void

Start() 공개 메소드

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