C# Class CenterScrollSnap, UGUIPlugin

Inheritance: MonoBehaviour, IBeginDragHandler, IEndDragHandler, IDragHandler
显示文件 Open project: l980305284/UGUIPlugin

Public Properties

Property Type Description
FastSwipeThreshold int
ItemHeight int
ItemWidth int
SpaceOffset int
UseFastSwipe Boolean

Public Methods

Method Description
CurrentScreen ( ) : int
NextScreen ( GameObject go, PointerEventData data ) : void
OnBeginDrag ( PointerEventData eventData ) : void
OnDrag ( PointerEventData eventData ) : void
OnEndDrag ( PointerEventData eventData ) : void
PreviousScreen ( GameObject go, PointerEventData data ) : void
Start ( ) : void
Update ( ) : void

Private Methods

Method Description
ChangeBulletsInfo ( int currentScreen ) : void
DistributePages ( ) : void
FindClosestFrom ( Vector3 start, System positions ) : Vector3
NextScreenCommand ( ) : void
PrevScreenCommand ( ) : void

Method Details

CurrentScreen() public method

public CurrentScreen ( ) : int
return int

NextScreen() public method

public NextScreen ( GameObject go, PointerEventData data ) : void
go GameObject
data UnityEngine.EventSystems.PointerEventData
return void

OnBeginDrag() public method

public OnBeginDrag ( PointerEventData eventData ) : void
eventData UnityEngine.EventSystems.PointerEventData
return void

OnDrag() public method

public OnDrag ( PointerEventData eventData ) : void
eventData UnityEngine.EventSystems.PointerEventData
return void

OnEndDrag() public method

public OnEndDrag ( PointerEventData eventData ) : void
eventData UnityEngine.EventSystems.PointerEventData
return void

PreviousScreen() public method

public PreviousScreen ( GameObject go, PointerEventData data ) : void
go GameObject
data UnityEngine.EventSystems.PointerEventData
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

FastSwipeThreshold public_oe property

public int FastSwipeThreshold
return int

ItemHeight public_oe property

public int ItemHeight
return int

ItemWidth public_oe property

public int ItemWidth
return int

SpaceOffset public_oe property

public int SpaceOffset
return int

UseFastSwipe public_oe property

public Boolean UseFastSwipe
return Boolean