C# 클래스 UnityPlatformer.BoxTileTrigger

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

공개 메소드들

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

메소드 상세

CharacterEnter() 공개 메소드

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

CharacterExit() 공개 메소드

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

GetCenter() 공개 메소드

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

OnDestroy() 공개 메소드

exit all player
public OnDestroy ( ) : void
리턴 void

OnTriggerEnter2D() 공개 메소드

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

OnTriggerExit2D() 공개 메소드

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

Start() 공개 메소드

force BoxCollider2D to be trigger
public Start ( ) : void
리턴 void