C# 클래스 UIItemSlot, Pharos

상속: MonoBehaviour
파일 보기 프로젝트 열기: rstaewen/Pharos 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
background UIWidget,
combineSound UnityEngine.AudioClip
errorSound UnityEngine.AudioClip
grabSound UnityEngine.AudioClip
icon UISprite,
label UILabel,
placeSound AudioClip

공개 메소드들

메소드 설명
OnClick ( ) : void

Allow to move objects around via drag & drop.

OnDrag ( Vector2 delta ) : void

Start dragging the item.

OnDrop ( GameObject go ) : void

Stop dragging the item.

OnTooltip ( bool show ) : void

Show a tooltip for the item.

Update ( ) : void

Keep an eye on the item and update the icon when it changes.

UpdateCursor ( ) : void

Set the cursor to the icon of the item being dragged.

보호된 메소드들

메소드 설명
Replace ( InvGameItem, item ) : InvGameItem,

Replace the observed item with the specified value. Should return the item that was replaced.

ReplaceExisting ( InvGameItem, item ) : InvGameItem,

메소드 상세

OnClick() 공개 메소드

Allow to move objects around via drag & drop.
public OnClick ( ) : void
리턴 void

OnDrag() 공개 메소드

Start dragging the item.
public OnDrag ( Vector2 delta ) : void
delta Vector2
리턴 void

OnDrop() 공개 메소드

Stop dragging the item.
public OnDrop ( GameObject go ) : void
go GameObject
리턴 void

OnTooltip() 공개 메소드

Show a tooltip for the item.
public OnTooltip ( bool show ) : void
show bool
리턴 void

Replace() 보호된 추상적인 메소드

Replace the observed item with the specified value. Should return the item that was replaced.
protected abstract Replace ( InvGameItem, item ) : InvGameItem,
item InvGameItem,
리턴 InvGameItem,

ReplaceExisting() 보호된 추상적인 메소드

protected abstract ReplaceExisting ( InvGameItem, item ) : InvGameItem,
item InvGameItem,
리턴 InvGameItem,

Update() 공개 메소드

Keep an eye on the item and update the icon when it changes.
public Update ( ) : void
리턴 void

UpdateCursor() 공개 메소드

Set the cursor to the icon of the item being dragged.
public UpdateCursor ( ) : void
리턴 void

프로퍼티 상세

background 공개적으로 프로퍼티

public UIWidget, background
리턴 UIWidget,

combineSound 공개적으로 프로퍼티

public AudioClip,UnityEngine combineSound
리턴 UnityEngine.AudioClip

errorSound 공개적으로 프로퍼티

public AudioClip,UnityEngine errorSound
리턴 UnityEngine.AudioClip

grabSound 공개적으로 프로퍼티

public AudioClip,UnityEngine grabSound
리턴 UnityEngine.AudioClip

icon 공개적으로 프로퍼티

public UISprite, icon
리턴 UISprite,

label 공개적으로 프로퍼티

public UILabel, label
리턴 UILabel,

placeSound 공개적으로 프로퍼티

public AudioClip placeSound
리턴 AudioClip