프로퍼티 | 타입 | 설명 | |
---|---|---|---|
levelSet | int | ||
minimap | |||
movingSphere | bool | ||
poles | List |
||
spherePrefab | LondonToweSphereScript | ||
spheres | List |
||
spheresIDColor | Color>.Dictionary | ||
state | LondonTowerGameState | ||
xmlLevels | List |
메소드 | 설명 | |
---|---|---|
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
|
메소드 | 설명 | |
---|---|---|
Start ( ) : void |
public OnTop ( int poleID, int orderInPole ) : bool | ||
poleID | int | |
orderInPole | int | |
리턴 | bool |
public SetLevel ( |
||
startData | ||
리턴 | void |
public SetOnTop ( LondonToweSphereScript sphere ) : void | ||
sphere | LondonToweSphereScript | |
리턴 | void |