public static StateSwitch ( |
||
data | ||
state | ItemState | |
attachedAction | System |
|
attachedHighlightedAction | System |
|
draggingAction | System |
|
floatingAction | System |
|
instantiateAction | System |
|
noInstantiateAction | System |
|
리턴 | void |
public void OnPointerEnter(PointerEventData data) { #if LOG Debug.Log("OnPointerEnter " + this.name); #endif ItemUtility.StateSwitch(data, GetComponent <Item>().State, OnPointerEnterAttached, null, null, null, null, null ); }
public void OnPointerUp(PointerEventData data) { #if LOG Debug.Log("OnPointerUp " + this.name); #endif ItemUtility.StateSwitch(data, State, OnPointerUpAttached, OnPointerUpAttachedHighlighted, OnPointerUpDragging, null, OnPointerUpInstantiate, null ); }
public void OnEndDrag(PointerEventData data) { #if LOG Debug.Log("OnEndDrag " + this.name); #endif ItemUtility.StateSwitch(data, GetComponent <Item>().State, null, null, OnEndDragDragging, null, null, null ); }
public void OnPointerDown(PointerEventData data) { #if LOG Debug.Log("OnPointerDown " + this.name); #endif ItemUtility.StateSwitch(data, State, OnPointerDownAttached, OnPointerDownAttachedHighlighted, null, null, OnPointerDownInstantiate, null ); }
public void OnBeginDrag(PointerEventData data) { #if LOG Debug.Log("OnBeginDrag " + this.name); #endif ItemUtility.StateSwitch(data, GetComponent <Item>().State, OnBeginDragAttached, OnBeginDragAttachedHighlighted, null, null, OnBeginDragInstantiate, OnBeginDragNoInstantiate ); }