C# Class UIItemSlot, Pharos

Inheritance: MonoBehaviour
Afficher le fichier Open project: rstaewen/Pharos Class Usage Examples

Méthodes publiques

Свойство Type Description
background UIWidget,
combineSound UnityEngine.AudioClip
errorSound UnityEngine.AudioClip
grabSound UnityEngine.AudioClip
icon UISprite,
label UILabel,
placeSound AudioClip

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
Replace ( InvGameItem, item ) : InvGameItem,

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

ReplaceExisting ( InvGameItem, item ) : InvGameItem,

Method Details

OnClick() public méthode

Allow to move objects around via drag & drop.
public OnClick ( ) : void
Résultat void

OnDrag() public méthode

Start dragging the item.
public OnDrag ( Vector2 delta ) : void
delta Vector2
Résultat void

OnDrop() public méthode

Stop dragging the item.
public OnDrop ( GameObject go ) : void
go GameObject
Résultat void

OnTooltip() public méthode

Show a tooltip for the item.
public OnTooltip ( bool show ) : void
show bool
Résultat void

Replace() protected abstract méthode

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

ReplaceExisting() protected abstract méthode

protected abstract ReplaceExisting ( InvGameItem, item ) : InvGameItem,
item InvGameItem,
Résultat InvGameItem,

Update() public méthode

Keep an eye on the item and update the icon when it changes.
public Update ( ) : void
Résultat void

UpdateCursor() public méthode

Set the cursor to the icon of the item being dragged.
public UpdateCursor ( ) : void
Résultat void

Property Details

background public_oe property

public UIWidget, background
Résultat UIWidget,

combineSound public_oe property

public AudioClip,UnityEngine combineSound
Résultat UnityEngine.AudioClip

errorSound public_oe property

public AudioClip,UnityEngine errorSound
Résultat UnityEngine.AudioClip

grabSound public_oe property

public AudioClip,UnityEngine grabSound
Résultat UnityEngine.AudioClip

icon public_oe property

public UISprite, icon
Résultat UISprite,

label public_oe property

public UILabel, label
Résultat UILabel,

placeSound public_oe property

public AudioClip placeSound
Résultat AudioClip