Beispiel #1
0
        /// <summary>
        /// 设置动画开始和暂停
        /// </summary>
        /// <param name="isPlay"></param>
        public void setTrackPlay(int isPlay)
        {
            switch (isPlay)
            {
            case 0:
                Debug.Log("开始播放");
                elementContainer.SetTrackPlay(isPlay);
                break;

            case 1:
                Debug.Log("暂停播放");
                elementContainer.SetTrackPlay(isPlay);
                break;

            case 2:
                Debug.Log("停止播放");
                DynamicElement.GetInstance().ResetStart();
                break;

            default:
                break;
            }
        }