263 lines
5.7 KiB
C#
263 lines
5.7 KiB
C#
using System;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x02000003 RID: 3
|
|
public class GETweenItem
|
|
{
|
|
// Token: 0x06000033 RID: 51 RVA: 0x000038BA File Offset: 0x00001ABA
|
|
public GETweenItem Cancel()
|
|
{
|
|
GETween.RemoveTween((int)this.m_ID, this.UniqueID);
|
|
return this;
|
|
}
|
|
|
|
// Token: 0x17000002 RID: 2
|
|
// (get) Token: 0x06000034 RID: 52 RVA: 0x000038CE File Offset: 0x00001ACE
|
|
public int UniqueID
|
|
{
|
|
get
|
|
{
|
|
return (int)(this.m_ID | (this.m_Counter << 16));
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000003 RID: 3
|
|
// (get) Token: 0x06000035 RID: 53 RVA: 0x000038E0 File Offset: 0x00001AE0
|
|
public int id
|
|
{
|
|
get
|
|
{
|
|
return this.UniqueID;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000036 RID: 54 RVA: 0x000038E8 File Offset: 0x00001AE8
|
|
public void Reset()
|
|
{
|
|
this.m_Toggle = true;
|
|
this.m_Trans = null;
|
|
this.m_Passed = (this.m_Delay = 0f);
|
|
this.m_HasUpdateCallback = (this.m_UseEstimatedTime = (this.m_HasInitiliazed = (this.m_CompleteOnRepeat = (this.m_DestroyOnComplete = (this.m_CompleteOnStart = false)))));
|
|
this.m_TweenType = GETween.GETweenType.linear;
|
|
this.m_LoopType = GETween.GETweenType.once;
|
|
this.m_LoopCount = 0;
|
|
this.m_Direction = 1f;
|
|
this.cleanup();
|
|
GETweenItem.m_GCounter += 1U;
|
|
if (GETweenItem.m_GCounter > 32768U)
|
|
{
|
|
GETweenItem.m_GCounter = 0U;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000037 RID: 55 RVA: 0x00003990 File Offset: 0x00001B90
|
|
public void cleanup()
|
|
{
|
|
this.m_OnUpdateFloat = null;
|
|
this.m_OnUpdateFloatRatio = null;
|
|
this.m_OnComplete = null;
|
|
this.m_OnCompleteObject = null;
|
|
this.m_OnCompleteParam = null;
|
|
}
|
|
|
|
// Token: 0x06000038 RID: 56 RVA: 0x000039B8 File Offset: 0x00001BB8
|
|
public void Init()
|
|
{
|
|
this.m_HasInitiliazed = true;
|
|
this.m_Diff = this.m_To - this.m_From;
|
|
if (this.m_CompleteOnStart)
|
|
{
|
|
if (this.m_OnComplete != null)
|
|
{
|
|
this.m_OnComplete();
|
|
return;
|
|
}
|
|
if (this.m_OnCompleteObject != null)
|
|
{
|
|
this.m_OnCompleteObject(this.m_OnCompleteParam);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000039 RID: 57 RVA: 0x00003A18 File Offset: 0x00001C18
|
|
public GETweenItem SetDelay(float delay)
|
|
{
|
|
if (this.m_UseEstimatedTime)
|
|
{
|
|
this.m_Delay = delay;
|
|
}
|
|
else
|
|
{
|
|
this.m_Delay = delay;
|
|
}
|
|
return this;
|
|
}
|
|
|
|
// Token: 0x0600003A RID: 58 RVA: 0x00003A33 File Offset: 0x00001C33
|
|
public GETweenItem SetEase(GETween.GETweenType easeType)
|
|
{
|
|
this.m_TweenType = easeType;
|
|
return this;
|
|
}
|
|
|
|
// Token: 0x0600003B RID: 59 RVA: 0x00003A3D File Offset: 0x00001C3D
|
|
public GETweenItem SetTo(Vector3 to)
|
|
{
|
|
if (this.m_HasInitiliazed)
|
|
{
|
|
this.m_To = to;
|
|
this.m_Diff = to - this.m_From;
|
|
}
|
|
else
|
|
{
|
|
this.m_To = to;
|
|
}
|
|
return this;
|
|
}
|
|
|
|
// Token: 0x0600003C RID: 60 RVA: 0x00003A6A File Offset: 0x00001C6A
|
|
public GETweenItem SetFrom(Vector3 from)
|
|
{
|
|
if (this.m_Trans)
|
|
{
|
|
this.Init();
|
|
}
|
|
this.m_From = from;
|
|
this.m_Diff = this.m_To - this.m_From;
|
|
return this;
|
|
}
|
|
|
|
// Token: 0x0600003D RID: 61 RVA: 0x00003A9E File Offset: 0x00001C9E
|
|
public GETweenItem SetId(uint id)
|
|
{
|
|
this.m_ID = id;
|
|
this.m_Counter = GETweenItem.m_GCounter;
|
|
return this;
|
|
}
|
|
|
|
// Token: 0x0600003E RID: 62 RVA: 0x00003AB3 File Offset: 0x00001CB3
|
|
public GETweenItem SetUseEstimatedTime(bool useEstimatedTime)
|
|
{
|
|
this.m_UseEstimatedTime = useEstimatedTime;
|
|
return this;
|
|
}
|
|
|
|
// Token: 0x0600003F RID: 63 RVA: 0x00003ABD File Offset: 0x00001CBD
|
|
public GETweenItem SetLoopPingPong()
|
|
{
|
|
this.m_LoopType = GETween.GETweenType.pingPong;
|
|
if (this.m_LoopCount == 0)
|
|
{
|
|
this.m_LoopCount = -1;
|
|
}
|
|
return this;
|
|
}
|
|
|
|
// Token: 0x06000040 RID: 64 RVA: 0x00003AD7 File Offset: 0x00001CD7
|
|
public GETweenItem SetOnComplete(Action onComplete)
|
|
{
|
|
this.m_OnComplete = onComplete;
|
|
return this;
|
|
}
|
|
|
|
// Token: 0x06000041 RID: 65 RVA: 0x00003AE1 File Offset: 0x00001CE1
|
|
public GETweenItem SetOnCompleteParam(object onCompleteParam)
|
|
{
|
|
this.m_OnCompleteParam = onCompleteParam;
|
|
return this;
|
|
}
|
|
|
|
// Token: 0x06000042 RID: 66 RVA: 0x00003AEB File Offset: 0x00001CEB
|
|
public GETweenItem SetOnUpdate(Action<float> onUpdate)
|
|
{
|
|
this.m_OnUpdateFloat = onUpdate;
|
|
this.m_HasUpdateCallback = true;
|
|
return this;
|
|
}
|
|
|
|
// Token: 0x06000043 RID: 67 RVA: 0x00003AFC File Offset: 0x00001CFC
|
|
public GETweenItem SetOnCompleteOnRepeat(bool isOn)
|
|
{
|
|
this.m_CompleteOnRepeat = isOn;
|
|
return this;
|
|
}
|
|
|
|
// Token: 0x04000015 RID: 21
|
|
public bool m_CompleteOnRepeat;
|
|
|
|
// Token: 0x04000016 RID: 22
|
|
public float m_Delay;
|
|
|
|
// Token: 0x04000017 RID: 23
|
|
public bool m_DestroyOnComplete;
|
|
|
|
// Token: 0x04000018 RID: 24
|
|
public Vector3 m_Diff;
|
|
|
|
// Token: 0x04000019 RID: 25
|
|
public float m_Direction;
|
|
|
|
// Token: 0x0400001A RID: 26
|
|
public Vector3 m_From;
|
|
|
|
// Token: 0x0400001B RID: 27
|
|
public bool m_HasUpdateCallback;
|
|
|
|
// Token: 0x0400001C RID: 28
|
|
public bool m_HasInitiliazed;
|
|
|
|
// Token: 0x0400001D RID: 29
|
|
public int m_LoopCount;
|
|
|
|
// Token: 0x0400001E RID: 30
|
|
public GETween.GETweenType m_LoopType;
|
|
|
|
// Token: 0x0400001F RID: 31
|
|
public Action m_OnComplete;
|
|
|
|
// Token: 0x04000020 RID: 32
|
|
public Action<object> m_OnCompleteObject;
|
|
|
|
// Token: 0x04000021 RID: 33
|
|
public object m_OnCompleteParam;
|
|
|
|
// Token: 0x04000022 RID: 34
|
|
public Action<float> m_OnUpdateFloat;
|
|
|
|
// Token: 0x04000023 RID: 35
|
|
public Action<float, float> m_OnUpdateFloatRatio;
|
|
|
|
// Token: 0x04000024 RID: 36
|
|
public float m_Passed;
|
|
|
|
// Token: 0x04000025 RID: 37
|
|
public float m_Time;
|
|
|
|
// Token: 0x04000026 RID: 38
|
|
public Vector3 m_To;
|
|
|
|
// Token: 0x04000027 RID: 39
|
|
public bool m_Toggle;
|
|
|
|
// Token: 0x04000028 RID: 40
|
|
public Transform m_Trans;
|
|
|
|
// Token: 0x04000029 RID: 41
|
|
public GETween.GETweenType m_TweenType;
|
|
|
|
// Token: 0x0400002A RID: 42
|
|
public bool m_UseEstimatedTime;
|
|
|
|
// Token: 0x0400002B RID: 43
|
|
private bool m_CompleteOnStart;
|
|
|
|
// Token: 0x0400002C RID: 44
|
|
private uint m_ID;
|
|
|
|
// Token: 0x0400002D RID: 45
|
|
private uint m_Counter;
|
|
|
|
// Token: 0x0400002E RID: 46
|
|
private static uint m_GCounter;
|
|
}
|