Unity and Flutter apps Home Page
Work to create apps for generating revenue
|
Uses the New Input 'Controls'(name you choose) which causes dot net generation of controls for the scenes OnMovement is generated to connect to the Movement action(in unity) Input Actions object The Controls.IPlayerActions is then an interface that this class implments and will be called when the action takes place. More...
Public Member Functions | |
void | OnDisable () |
OnDissable is used as the InputReader is dissabled, ending callbacks and setting the service to dissabled. | |
void | OnMovement (InputValue pInputValue) |
This is one of the implementing interface methods that will be called when the action takes place. However, this old input system using a parameter of InputValue. The new input action is below. | |
void | OnJump (InputValue pInputValue) |
void | OnMovement (InputAction.CallbackContext context) |
This is using the new input system with its signature of CallbackContext(which is more rich in functionality) The fact its value is a Vector2 comes from the unity setup of the action properties It uses the Actions class to connect it to interested consumers of change. | |
void | OnCameraMove (InputAction.CallbackContext context) |
void | OnJump (InputAction.CallbackContext context) |
void | OnQuit (InputAction.CallbackContext context) |
Uses the New Input 'Controls'(name you choose) which causes dot net generation of controls for the scenes OnMovement is generated to connect to the Movement action(in unity) Input Actions object The Controls.IPlayerActions is then an interface that this class implments and will be called when the action takes place.
void Player.InputReader.OnCameraMove | ( | InputAction.CallbackContext | context | ) |
Implements Controls.IPlayerActions.
void Player.InputReader.OnDisable | ( | ) |
OnDissable is used as the InputReader is dissabled, ending callbacks and setting the service to dissabled.
void Player.InputReader.OnJump | ( | InputAction.CallbackContext | context | ) |
Implements Controls.IPlayerActions.
void Player.InputReader.OnJump | ( | InputValue | pInputValue | ) |
void Player.InputReader.OnMovement | ( | InputAction.CallbackContext | context | ) |
This is using the new input system with its signature of CallbackContext(which is more rich in functionality) The fact its value is a Vector2 comes from the unity setup of the action properties It uses the Actions class to connect it to interested consumers of change.
context |
Implements Controls.IPlayerActions.
void Player.InputReader.OnMovement | ( | InputValue | pInputValue | ) |
This is one of the implementing interface methods that will be called when the action takes place. However, this old input system using a parameter of InputValue. The new input action is below.
pInputValue |
void Player.InputReader.OnQuit | ( | InputAction.CallbackContext | context | ) |
Implements Controls.IPlayerActions.