Esempio n. 1
0
    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);
    }
Esempio n. 2
0
    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);
    }
Esempio n. 3
0
    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);
    }