StateSwitch() публичный статический Метод

public static StateSwitch ( PointerEventData data, ItemState state, System attachedAction, System attachedHighlightedAction, System draggingAction, System floatingAction, System instantiateAction, System noInstantiateAction ) : void
data UnityEngine.EventSystems.PointerEventData
state ItemState
attachedAction System
attachedHighlightedAction System
draggingAction System
floatingAction System
instantiateAction System
noInstantiateAction System
Результат void
Пример #1
0
        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
                                    );
        }
Пример #2
0
        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
                                    );
        }
Пример #4
0
        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
                                    );
        }