コード例 #1
0
ファイル: UseSkillPopup.cs プロジェクト: HyunsunRyu/LineCrush
    private void RotateBright()
    {
        float start    = 0f;
        float end      = 90f;
        float animTime = 2f;

        bright.localRotation = Quaternion.identity;
        bright.gameObject.SetActive(true);

        AnimCurveController.Rotation(brightRotateCurve, Vector3.forward, start, end, animTime, bright, null);
    }
コード例 #2
0
ファイル: GoPopup.cs プロジェクト: HyunsunRyu/LineCrush
    protected override void UIOpenAnimation(System.Action callback)
    {
        AnimCurveController.Scale(scaleCurve, startScale, endScale, animTime, moveTarget, () =>
        {
            if (callback != null)
            {
                callback();
            }

            PopupSystem.ClosePopup(Define.PopupType.Go, this.callback);
        });

        AnimCurveController.Rotation(rotationCurve, Vector3.forward, startAngle, endAngle, animTime, moveTarget, null);
    }
コード例 #3
0
ファイル: TimeUpPopup.cs プロジェクト: HyunsunRyu/LineCrush
    protected override void UIOpenAnimation(System.Action callback)
    {
        openStartMove.y = ScreenSizeGetter.height * 0.5f + 200f;
        AnimCurveController.Move(openMoveCurve, openStartMove, openEndMove, openAnimTime, moveTarget, () =>
        {
            if (callback != null)
            {
                callback();
            }

            PopupSystem.ClosePopup(Define.PopupType.TimeUp);
        });

        AnimCurveController.Rotation(openRotationCurve, Vector3.forward, openStartAngle, openEndAngle, openAnimTime, moveTarget, null);
    }