Example #1
0
    public void SetTweenValue(TweenManager.EaseType type, TweenManager.TweenType tweenType, GameObject tweenObject, float duration, float delay, bool isLocal, EventHandler hdr, params Vector2[] list)
    {
        _easeType        = type;
        _tweenType       = tweenType;
        _targetObject    = tweenObject;
        _isLocal         = isLocal;
        _start           = new float[list.Length];
        _end             = new float[list.Length];
        _currentValue    = new float[list.Length];
        _endEventHandler = hdr;

        for (int i = 0; i < list.Length; i++)
        {
            _start[i] = list[i].x;
            _end[i]   = list[i].y;
        }

        _currentTime = 0.0f - delay;
        _time        = duration;
    }
Example #2
0
 public void SetTweenValue(TweenManager.EaseType type, TweenManager.TweenType tweenType, GameObject tweenObject, float duration, float delay, bool isLocal, EventHandler hdr, object obj, params Vector2[] list)
 {
     SetTweenValue(type, tweenType, tweenObject, duration, delay, isLocal, hdr, list);
     _obj = obj;
 }