addOtherAnimation method

Future<void> addOtherAnimation(
  1. String key,
  2. Future<SpriteAnimation> animation
)

Method used to register new animation in others

Implementation

Future<void> addOtherAnimation(
  String key,
  Future<SpriteAnimation> animation,
) async {
  others[key] = await animation;
}