C# Class BBGamelib.CCScrollLayer

Inheritance: CCLayer
Mostrar archivo Open project: BigWoodGames/cocos2d-unity

Public Methods

Method Description
CCScrollLayer ( List layers, int pagesWidthOffset, int priority ) : UnityEngine
addPage ( CCLayer aPage ) : void
addPage ( CCLayer aPage, int page ) : void
ccTouchBegan ( UITouch touch ) : bool
ccTouchCancelled ( UITouch touch ) : void
ccTouchEnded ( UITouch touch ) : void
ccTouchMoved ( UITouch touch ) : void
initWithLayers ( List layers, int widthOffset, int priority ) : void
moveToPage ( int page ) : void
removePage ( CCLayer aPage ) : void
removePageWithNumber ( int page ) : void
selectPage ( int page ) : void
updatePages ( ) : void

Protected Methods

Method Description
registerWithTouchDispatcher ( ) : void

Private Methods

Method Description
claimTouch ( UITouch aTouch ) : void
moveToPageEnded ( ) : void
pageNumberForPosition ( Vector2 position ) : int
positionForPageWithNumber ( int pageNumber ) : Vector2

Method Details

CCScrollLayer() public method

public CCScrollLayer ( List layers, int pagesWidthOffset, int priority ) : UnityEngine
layers List
pagesWidthOffset int
priority int
return UnityEngine

addPage() public method

public addPage ( CCLayer aPage ) : void
aPage CCLayer
return void

addPage() public method

public addPage ( CCLayer aPage, int page ) : void
aPage CCLayer
page int
return void

ccTouchBegan() public method

public ccTouchBegan ( UITouch touch ) : bool
touch UITouch
return bool

ccTouchCancelled() public method

public ccTouchCancelled ( UITouch touch ) : void
touch UITouch
return void

ccTouchEnded() public method

public ccTouchEnded ( UITouch touch ) : void
touch UITouch
return void

ccTouchMoved() public method

public ccTouchMoved ( UITouch touch ) : void
touch UITouch
return void

initWithLayers() public method

public initWithLayers ( List layers, int widthOffset, int priority ) : void
layers List
widthOffset int
priority int
return void

moveToPage() public method

public moveToPage ( int page ) : void
page int
return void

registerWithTouchDispatcher() protected method

protected registerWithTouchDispatcher ( ) : void
return void

removePage() public method

public removePage ( CCLayer aPage ) : void
aPage CCLayer
return void

removePageWithNumber() public method

public removePageWithNumber ( int page ) : void
page int
return void

selectPage() public method

public selectPage ( int page ) : void
page int
return void

updatePages() public method

public updatePages ( ) : void
return void