protected override void proceedAnimating() { base.proceedAnimating(); Vector3 newScale = transform.localScale; newScale.Scale(TransformTweener.GetInverseVectorForTweenerType(tweenerType)); newScale += currentValue * TransformTweener.GetVectorForTweenerType(tweenerType); transform.localScale = newScale; }
protected override void proceedAnimating() { base.proceedAnimating(); if (local) { Vector3 newPosition = transform.localPosition; newPosition.Scale(TransformTweener.GetInverseVectorForTweenerType(tweenerType)); newPosition += currentValue * TransformTweener.GetVectorForTweenerType(tweenerType); transform.localPosition = newPosition; } else { Vector3 newPosition = transform.position; newPosition.Scale(TransformTweener.GetInverseVectorForTweenerType(tweenerType)); newPosition += currentValue * TransformTweener.GetVectorForTweenerType(tweenerType);; transform.position = newPosition; } }