C# Class ButtonOnclick, Viewport

Inheritance: MonoBehaviour
Show file Open project: tws2xa/Viewport

Public Properties

Property Type Description
anim Animation
arrowSelectors GameObject[]
camCreditsPosition Vector3
levelNames string[]
levelSprites Sprite[]
loadingIndicatorSpinAmount int
mySprites Sprite[]
spinButtonIndicators List
submitLevelButtons List

Public Methods

Method Description
FindUnusedImage ( int start, int delta ) : int

Finds the next unused images

GetFirstUnusedImageInt ( ) : int
GetNextUnusedImageInt ( int start ) : int

Find the next unused ball image starting from start (inclusive).

GetPreviousUnusedImageInt ( int start ) : int

Find the previous unused ball image starting from start (inclusive).

HandleCredits ( ) : void
HandleSelectLevelUpdate ( ) : void
HandleSelectMenuUpdate ( ) : void
HandleSelectPlayerUpdate ( ) : void
SetLoadingState ( bool loading ) : void
Start ( ) : void
Update ( ) : void
backButton ( ) : void
changeScene ( ) : void
endMenu ( ) : void
loadCredits ( ) : void
showMenu ( int menuNum ) : void
submitPlayers ( ) : void

Private Methods

Method Description
ClearPrefs ( ) : void

Method Details

FindUnusedImage() public method

Finds the next unused images
public FindUnusedImage ( int start, int delta ) : int
start int Where to start (inclusive)
delta int How much to change each iteration
return int

GetFirstUnusedImageInt() public method

public GetFirstUnusedImageInt ( ) : int
return int

GetNextUnusedImageInt() public method

Find the next unused ball image starting from start (inclusive).
public GetNextUnusedImageInt ( int start ) : int
start int Where to begin checking for unused images (inclusive)
return int

GetPreviousUnusedImageInt() public method

Find the previous unused ball image starting from start (inclusive).
public GetPreviousUnusedImageInt ( int start ) : int
start int Where to begin checking for unused images (inclusive)
return int

HandleCredits() public method

public HandleCredits ( ) : void
return void

HandleSelectLevelUpdate() public method

public HandleSelectLevelUpdate ( ) : void
return void

HandleSelectMenuUpdate() public method

public HandleSelectMenuUpdate ( ) : void
return void

HandleSelectPlayerUpdate() public method

public HandleSelectPlayerUpdate ( ) : void
return void

SetLoadingState() public method

public SetLoadingState ( bool loading ) : void
loading bool
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

backButton() public method

public backButton ( ) : void
return void

changeScene() public method

public changeScene ( ) : void
return void

endMenu() public method

public endMenu ( ) : void
return void

loadCredits() public method

public loadCredits ( ) : void
return void

showMenu() public method

public showMenu ( int menuNum ) : void
menuNum int
return void

submitPlayers() public method

public submitPlayers ( ) : void
return void

Property Details

anim public property

public Animation anim
return Animation

arrowSelectors public property

public GameObject[] arrowSelectors
return GameObject[]

camCreditsPosition public property

public Vector3 camCreditsPosition
return Vector3

levelNames public property

public string[] levelNames
return string[]

levelSprites public property

public Sprite[] levelSprites
return Sprite[]

loadingIndicatorSpinAmount public property

public int loadingIndicatorSpinAmount
return int

mySprites public property

public Sprite[] mySprites
return Sprite[]

spinButtonIndicators public property

public List spinButtonIndicators
return List

submitLevelButtons public property

public List submitLevelButtons
return List