示例#1
0
    //人物消失
    IEnumerator DisappearRole()
    {
        MiniItween.MoveTo(LeftRole.gameObject, new Vector3(-hideDis, 0f, 0f), QuitTimeRole);
        MiniItween.MoveTo(RightRole.gameObject, new Vector3(hideDis, 0f, 0f), QuitTimeRole);

        yield return(new WaitForSeconds(QuitTimeRole));

        bgAnim.AnimationEndDelegate = null;
        bgAnim.Reverse();
    }
示例#2
0
    /// <summary>
    /// 结束动画
    /// </summary>
    IEnumerator EndAnim()
    {
        Line.Reverse();

        MiniItween.ScaleTo(AllWord, FadeOut_Scale * Vector3.one, FadeOut_Time);
        for (int index = 0; index < 7; ++index)
        {
            UILabel lbl_word = WarningWord[index];
            MiniItween.ColorTo(lbl_word.gameObject, new V4(Trans), FadeOut_Time, MiniItween.Type.ColorWidget);
        }
        yield return(new WaitForSeconds(FadeOut_Time));

        MiniItween.ColorTo(BG_Black.gameObject, new V4(Trans), Black_Time, MiniItween.Type.ColorWidget);
        yield return(StartCoroutine(HideAll()));

        yield return(new WaitForSeconds(Black_Time * 0.5f));
    }