Beispiel #1
0
        protected override void OnAdd(ScaleSystemData data)
        {
            var ranges = new ScaleRanges(data.StartScale, data.EndScale);

            scaleRanges.Add(ranges);

            times.Add(0f);
            scales.Add(transform.localScale.x);
            durations.Add(data.Duration);
            onFinishedActions.Add(data.OnFinished);
        }
Beispiel #2
0
        protected override void OnUpdateData(int index, ScaleSystemData data)
        {
            var ranges = new ScaleRanges(data.StartScale, data.EndScale);

            scaleRanges[index] = ranges;

            times[index]             = 0f;
            scales[index]            = transform.localScale.x;
            durations[index]         = data.Duration;
            onFinishedActions[index] = data.OnFinished;
        }