Beispiel #1
0
    public virtual void OnDisable()
    {
        GameEvents.RemoveGameStateEnteredListener(DidEnterGameState);
        GameEvents.RemoveGameStateExitListener(WillExitGameState);

        UIEvents.RemoveListener(EPointerEvent.PointerDown, OnPointerDown);
        UIEvents.RemoveListener(EPointerEvent.DragStart, OnDragStart);
        UIEvents.RemoveListener(EPointerEvent.Drag, OnDrag);
        UIEvents.RemoveListener(EPointerEvent.DragEnd, OnDragStop);
    }