Closed martynov-oleg closed 2 years ago
let animate: PixiAnimate = {
MovieClip: MovieClip,
Container: AnimateContainer,
Graphics: AnimateGraphics,
Text: AnimateText,
Sprite: AnimateSprite
}
alphaAnimation.default.setup(animate);
solved the problem by implementing an interface and calling setup after the resources were loaded. Crutch, but I don’t know how else
Hello, please help
have the following exported object I import it like this: const alphaAnimation = require("./animations/alphaAnimation.js");
I load like this:
but asset variable is always null, what am I doing wrong ?