35 lines
810 B
C#
35 lines
810 B
C#
using System;
|
|
using Manager;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x02000133 RID: 307
|
|
public class MenuAnimationData
|
|
{
|
|
// Token: 0x06000A16 RID: 2582 RVA: 0x0002A920 File Offset: 0x00029B20
|
|
public bool Update(out Vector2 pos)
|
|
{
|
|
this.time += (float)GameManager.GetGameMSecAdd();
|
|
float num = this.curve.Evaluate(this.time / this.duration);
|
|
pos = Vector2.Lerp(this.basePosition, this.toPosition, num);
|
|
return this.time >= this.duration;
|
|
}
|
|
|
|
// Token: 0x04000842 RID: 2114
|
|
private float time;
|
|
|
|
// Token: 0x04000843 RID: 2115
|
|
public AnimationCurve curve;
|
|
|
|
// Token: 0x04000844 RID: 2116
|
|
public Vector2 basePosition;
|
|
|
|
// Token: 0x04000845 RID: 2117
|
|
public Vector2 toPosition;
|
|
|
|
// Token: 0x04000846 RID: 2118
|
|
public float duration;
|
|
|
|
// Token: 0x04000847 RID: 2119
|
|
public int nextImageIndex = -1;
|
|
}
|