Property | Type | Description | |
---|---|---|---|
levelSet | int | ||
minimap | |||
movingSphere | bool | ||
poles | List |
||
spherePrefab | LondonToweSphereScript | ||
spheres | List |
||
spheresIDColor | Color>.Dictionary | ||
state | LondonTowerGameState | ||
xmlLevels | List |
Method | Description | |
---|---|---|
CheckWin ( ) : bool |
check if player win, after each sphere move
|
|
GameEnd ( ) : void | ||
IsPoleFull ( int polePosition ) : bool |
check if pole if full - then cant place any sphere on it, until at least one sphere is removed
|
|
OnTop ( int poleID, int orderInPole ) : bool |
check if sphere is on top/on given order pole so it player can moved with it
|
|
SetLevel ( |
set level from startData, doesn matter if it for expample/screen or for game
|
|
SetOnTop ( LondonToweSphereScript sphere ) : void |
after sphere is place it check if the sphere is definetly on top of pole and if not t place the sphere on top
|
|
StartGame ( ) : void |
call at level start, create all necessary steps to load level, take screen etc
|
Method | Description | |
---|---|---|
Start ( ) : void |
public IsPoleFull ( int polePosition ) : bool | ||
polePosition | int | |
return | bool |
public OnTop ( int poleID, int orderInPole ) : bool | ||
poleID | int | |
orderInPole | int | |
return | bool |
public SetLevel ( |
||
startData | ||
return | void |
public SetOnTop ( LondonToweSphereScript sphere ) : void | ||
sphere | LondonToweSphereScript | |
return | void |
public LondonToweSphereScript spherePrefab | ||
return | LondonToweSphereScript |
public static Dictionary |
||
return | Color>.Dictionary |
public static LondonTowerGameState state | ||
return | LondonTowerGameState |