Main.as类:
gameCol = new GameControl();
gameCol.gameLoad();
GameControllei类:
动画文件统一在GameAni.ani内制作
private var aniArr:Array = [
"res/atlas/role/hero.atlas",
"res/atlas/role/monster/monsterA/die.atlas",
"res/atlas/role/monster/monsterA/move.atlas"
];
Laya.loader.load(aniArr, Handler.create(this, onAni), null, Loader.ATLAS);
private function onAni():void
{
var role:SimpleRole = new SimpleRole();
Laya.stage.addChild(role);
}
SimpleRole类: public function SimpleRole()
{
roleAni = new Animation();
roleAni.loadAnimation("GameAni.ani");
}
Not found: GameAni.ani#
求帮忙看下原因