this.miandibg.getComponent(Animation).getState(“main_bg”).wrapMode = AnimationClip.WrapMode.Loop; 官方提供的方法会重置