Esempio n. 1
0
    public override void PlayAnimation(SceneTransitionAnimator.CallbackFunction callbackFunction)
    {
        base.PlayAnimation(callbackFunction);

        r = swipe.GetComponent <RectTransform>();
        swipe.GetComponent <Image>().fillOrigin = 0;
        RectTransform cr = _canvas.GetComponent <RectTransform>();

        _startY = 0f;
        _endY   = 1f;

        if (_transitionOn)
        {
            swipe.GetComponent <Image>().fillOrigin = 1;

            float tmp = _startY;
            _startY = _endY;
            _endY   = -1f * tmp;
        }

        swipe.GetComponent <Image>().fillAmount = _startY;

        _t = 0f;
    }
 public virtual void PlayAnimation(SceneTransitionAnimator.CallbackFunction callbackFunction)
 {
     _callbackFunction = callbackFunction;
     animating         = true;
 }
    public override void PlayAnimation(SceneTransitionAnimator.CallbackFunction callbackFunction)
    {
        base.PlayAnimation(callbackFunction);

        t = 0;
    }