C# Class CenterScrollSnap, UGUIPlugin

Inheritance: MonoBehaviour, IBeginDragHandler, IEndDragHandler, IDragHandler
Show file 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 property

public int FastSwipeThreshold
return int

ItemHeight public property

public int ItemHeight
return int

ItemWidth public property

public int ItemWidth
return int

SpaceOffset public property

public int SpaceOffset
return int

UseFastSwipe public property

public Boolean UseFastSwipe
return Boolean