C# 클래스 UnityPlatformer.Item

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

공개 프로퍼티들

프로퍼티 타입 설명
animationName string
facing Facing
offset UnityEngine.Vector3

공개 메소드들

메소드 설명
Enter ( Character p ) : void

notify Character is in area item

Exit ( Character p ) : void

notify Character is out area item

GetCenter ( ) : Vector3

Get real-world-coordinates center

IsUsableBy ( Character p ) : bool

everybody can use this item otherwise, override

OnTriggerEnter2D ( Collider2D o ) : void

When HitBox(EnterAreas) enter -> Enter

OnTriggerExit2D ( Collider2D o ) : void

When HitBox(EnterAreas) leave -> Exit

PositionCharacter ( Character p ) : void

Set the position/facing of the player to the desired values

Start ( ) : void

Get BoxCollider2D

Use ( Character p ) : void

Implement this function with the action that need to performed

메소드 상세

Enter() 공개 메소드

notify Character is in area item
public Enter ( Character p ) : void
p Character
리턴 void

Exit() 공개 메소드

notify Character is out area item
public Exit ( Character p ) : void
p Character
리턴 void

GetCenter() 공개 메소드

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

IsUsableBy() 공개 메소드

everybody can use this item otherwise, override
public IsUsableBy ( Character p ) : bool
p Character
리턴 bool

OnTriggerEnter2D() 공개 메소드

When HitBox(EnterAreas) enter -> Enter
public OnTriggerEnter2D ( Collider2D o ) : void
o UnityEngine.Collider2D
리턴 void

OnTriggerExit2D() 공개 메소드

When HitBox(EnterAreas) leave -> Exit
public OnTriggerExit2D ( Collider2D o ) : void
o UnityEngine.Collider2D
리턴 void

PositionCharacter() 공개 메소드

Set the position/facing of the player to the desired values
public PositionCharacter ( Character p ) : void
p Character
리턴 void

Start() 공개 메소드

Get BoxCollider2D
public Start ( ) : void
리턴 void

Use() 공개 추상적인 메소드

Implement this function with the action that need to performed
public abstract Use ( Character p ) : void
p Character
리턴 void

프로퍼티 상세

animationName 공개적으로 프로퍼티

animation name to play when using
public string animationName
리턴 string

facing 공개적으로 프로퍼티

Character facing when playing animation
public Facing facing
리턴 Facing

offset 공개적으로 프로퍼티

Character offset when playing animation
public Vector3,UnityEngine offset
리턴 UnityEngine.Vector3