示例#1
0
        internal void Initialize(ComponentTweenParam param, GameObject[] objs)
        {
            if (objs == null || objs.Length <= 0)
            {
                throw new Exception("GameObject is null");
            }

            var currentCount = GetComponent(objs);

            _param = param;
            _isCacheDefaultValue = false;
            _begins = new TweenValue[currentCount];
            _caches = new TweenValue[currentCount];
            for (var i = 0; i < currentCount; i++)
            {
                _caches[i] = new TweenValue();
                _begins[i] = new TweenValue();
            }
        }
示例#2
0
 internal ComponentTweener(ComponentTweenParam param, TweenTarget target)
 {
     _param  = param;
     _target = target;
 }