![]() |
BomberUnits
...a Unity learning project
|
Character Control encompasses the player::PlayerController behaviour and a number of associated classes and data structures wrapping its responsibilities. (See Character Control for details.)
The PlayerController is responsible for reading player input and translating it to movement and interaction (e.g. Bomb Placement). One instance is of course associated to each character and requires reference to the fitting player::Player object for initialization and player status changes. Additionally, player death is broadcasted via a net::NetEvent and control data (like character position) is synced between clients via PhotonView (de)serialization callbacks.