Components - Avihay-Games-Ltd/Super-Tactico GitHub Wiki
In the GameManager object, there will be one script that calls as the game object itself- GameManager .
The GameManager script contains all the details about the current situation of the game.
Almost every other game object script in the game has a reference to this script,
and they pass and get information from him like it was the game's database.
In the Board object, will be also just one script with the name of the game object itself- Board .
The Board script contains a data structure that represents the logic between the tiles on the board.
In the Tile object, there will be also one script with the name of the game object itself- Tile .
The Tile component will be responsible to change the Tile visibility and accessibility according to the game state .
Those scripts will be part of every tool in the game
The GameTool component will initialize all the information about a specific tool and stores it in variables.
The main importance of the GameTool component is at the start of the game when the tools are created.
ToolMovement is a component that responsible for the movement of the tools .
The Tool's movement will be only to the left, right, forward, back, assuming all tiles are accessible to this tool.
Loading will gather information about the loading abilities of the tool. According to those abilities, it decides if the tool can load or can be loaded in every specific situation in the game. As in the GameTool component, most of the information will be initialized at the start of the game.