// Create Animator private void Setup(float dur, float delay, AnimationEasingType eas, EasingType typ, AnimationDriveType d) { startTime = Time.time + delay; duration = dur; easingType = typ; easing = new AnimationEasing(eas); drive = new AnimationDrive(d); }
public AnimationEasing(AnimationEasingType type) { this.type = type; }
// Fallback with dynamic typing public AniMator(System.Object sta, System.Object end, System.Object chg, float dur, float delay, AnimationEasingType eas, EasingType typ, AnimationDriveType d) { startValue = sta; endValue = end; change = chg; Setup(dur, delay, eas, typ, d); }