addAction method

Future addAction(
  1. JoystickAction action
)

Implementation

Future addAction(JoystickAction action) async {
  action.initialize(this, gameRef.camera.viewport);
  await action.onLoad();
  actions.add(action);
}