Class World¶
Defined in File World.cs
Class Documentation¶
-
class
World
: public MonoBehaviour¶ Game world representation.
Public Functions
-
void
generateInitialWorld
()¶ Generate initial visible tile grid
-
void
initMap
()¶ Initialize world
-
void
updateMap
()¶ Checks if player move to new tile, generates new tiles in the player direcction and destroy tiles in the other side
Public Members
-
Transform
player
The player object
-
GameObject [] prefabs
Tile prefabs
-
int
initialrange
= 1 Size of tile ring generation zone
-
float
tileSize
= 100¶ Size of tile
-
int
tileConnections
= 1¶ Number of connections of the tile
-
Vector3
poolObjectPosition
The pool object position (away from the camera)
-
void