public void LockFadeInout(bool bIn)
 {
     if (bIn)
     {
         ShowLock(bIn);
         gameObject.GetComponent <Image>().DOFade(0.9f, 2);
         unlockGp.DOFade(1, 2);
     }
     else
     {
         HideOther(false);
         gameObject.GetComponent <Image>().DOFade(0, 2);
         unlockGp.DOFade(0, 2).onComplete = delegate()
         {
             gameObject.SetActive(false);
         };
     }
 }
Example #2
0
    //public override bool Ok()
    //{

    //    return true;
    //}

    /// <summary>
    /// 闪烁动画
    /// </summary>
    /// <param name="btn"></param>
    /// <param name="startValue"></param>
    /// <param name="endValue"></param>
    /// <param name="times"></param>
    void Pingpong(SkeletonGraphic spine, float startValue, float endValue, float times)
    {
        tween = spine.DOFade(endValue, times);
        tween.SetAutoKill(false);
        tween.onComplete = () =>
        {
            if (isPingpong)
            {
                Pingpong(spine, endValue, startValue, times);
            }
        };
    }