示例#1
0
 void PauseEffectAnimation(object obj)
 {
     BackgroundEffecteObjAnim.ApplyAllItem(P => P[P.clip.name].speed = 0);
     //foreach (AnimationState child in BackgroundEffecteObjAnim[0])
     //{
     //    child.speed = 0;
     //}
 }
示例#2
0
        /// <summary>
        /// 显示第一个评分面板完毕,显示第二个奖励面板
        /// </summary>
        /// <param name="obj"></param>
        public void ShowPanel01Complete(object obj)
        {
            SuggestionPesionLabel.gameObject.SetActive(false);
            TweenAlpha.Begin(WinElementTitle_1.gameObject, 0.1f, 1, 0, null);
            Vector3 fromPosition = new Vector3(-235, 60, 10);
            Vector3 toPosition   = new Vector3(-425, 60, 10);

            TweenPosition.Begin(WinElementTitle_1.gameObject, 0.1f, fromPosition, toPosition);
            BackgroundEffecteObjAnim.ApplyAllItem(P => P[P.clip.name].speed = 1);
            DoForTime.DoFunForTime(1, TweenRemoveGrad, null);
            DoForTime.DoFunForTime(1.5f, ShowPanel02, null);
            //ShowPanel02(null);
        }