Player
Last updated
Last updated
The Player
prefab is the avatar that the user controls throughout the game. It consist of some major components :
PlayerJump
: manages the "jump charge" mechanism. Note that the Jump mechanic itself is not managed by this component (sorry for the poor naming). The Jump mechanic is managed by DefaultVehicle
gameObject.
VehicleController
: manages the vehicle switching and its lifecycles.
PlayerCollision
: manages collision handling specific to Player.
SuperPowerController
: manages Super Power application.
PlayerBuffController
: manages PlayerBuff
and its lifecycle.
Player
: the central hub that manages all of the above.
By itself, the Player
prefab doesn't do much. Instead, it relies on multiple child prefabs that handles other aspect of the player, such as :
Vehicle : manages default and vehicle mechanic
Underpants : provides various Abilities
PlayerAnimation : manages Player's spine animation