using Spine.Unity;using System.Collections;using System.Collections.Generic;using UnityEngine;publicclassSetframe:MonoBehaviour{publicSkeletonAnimation ani;// Start is called before the first frame updatevoidStart(){
ani.timeScale =0;var repeat=ani.AnimationState.GetCurrent(0);
repeat.AnimationStart =2f;
repeat.AnimationEnd =4f;
caranimation.timeScale =1;}// Update is called once per framevoidUpdate(){}}