// 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); }
private bool DriveNeedsDiff(AnimationDriveType drive) { AnimationDrive d = new AnimationDrive(drive); return d.CalculateDiff(); }