Managers & other supporting systems

CollisionResolver

  • CollisionResolver is a special static class that manages resolution when two collider component triggers.

  • Each collision trigger in the game must go through this component.

  • Collision is resolved based on the gameObject's Tag

  • Example collision resolving :

    • Player vs Enemy

    • Player vs Wall

    • Player vs Boss

    • Enemy vs Wall

    • etc.

GameLoop

  • GameLoop is the typical "GameManager", that manages the flow of the game, such as Play, Pause, Result, etc.

  • In order to do that, GameLoop is essentially a FSM

  • All game states and transitions in the game is managed by the GameLoop's states, including menu showing, etc.

GameplayTracker

  • GameplayTracker tracks many things inside the gameplay.

    • such as coins obtained, enemies killed, distance, etc.

  • It is used primarily in result screen to calculate rewards for User.

Spawner

Spawner and it's related component, is the class responsible for spawning the Enemies according to the Spawn Table.

Last updated