예제 #1
0
파일: AniMate.cs 프로젝트: bfowle/Ani.Mate
 public AnimationDrive(AnimationDriveType type) {
     this.type = type;
 }
예제 #2
0
파일: AniMate.cs 프로젝트: bfowle/Ani.Mate
 // 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);
 }
예제 #3
0
파일: AniMate.cs 프로젝트: bfowle/Ani.Mate
 // 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);
 }
예제 #4
0
파일: AniMate.cs 프로젝트: bfowle/Ani.Mate
 private bool DriveNeedsDiff(AnimationDriveType drive) {
     AnimationDrive d = new AnimationDrive(drive);
     return d.CalculateDiff();
 }