我需要跟踪带有纹理的动画。我正在为电源条设置动画,当用户单击屏幕时它应该停止并节省电量。我不知道如何省电。到目前为止我有这个:第一次触摸电源条动画,但在第二次触摸时它只停止但不节省电量。这是我创建动画的方式:textureAtlas=SKTextureAtlas(named:"images")foriin1...textureAtlas.textureNames.count{letname="\(i).png"textureArray.append(SKTexture(imageNamed:name))}letanimateForward=SKAction.animate(with:t