init method

Future<bool> init([
  1. dynamic renderer,
  2. dynamic update
])

Implementation

Future<bool> init([renderer, update]) async {
  renderCallback = renderer;
  updateCallback = update;
  await prepare();
  //await Wardrobe.loadTextures();
  //render();
  _previous = 0;
  isAnimation = true;
  animate();
  return true;
}