Skip to content

Commit b7f4469

Browse files
committed
Update property name casing
1 parent 7804a99 commit b7f4469

File tree

5 files changed

+73
-73
lines changed

5 files changed

+73
-73
lines changed

Runtime/Sequence.cs

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,22 @@ public sealed class Sequence : Tween
1111
/// <summary>
1212
/// The index of the current tween in the sequence being played (Read only).
1313
/// </summary>
14-
public int currentIndex { get; private set; } = -1;
14+
public int CurrentIndex { get; private set; } = -1;
1515

1616
/// <summary>
1717
/// The tweens contained in the sequence (Read only).
1818
/// </summary>
19-
public readonly List<Tween> tweens = new List<Tween>();
19+
public readonly List<Tween> Tweens = new List<Tween>();
2020

2121
/// <summary>
2222
/// The tween in the sequence currently being played (Read only).
2323
/// </summary>
24-
public Tween activeTween
24+
public Tween ActiveTween
2525
{
2626
get
2727
{
28-
if (currentIndex >= 0 && currentIndex < tweens.Count) {
29-
return tweens[currentIndex];
28+
if (CurrentIndex >= 0 && CurrentIndex < Tweens.Count) {
29+
return Tweens[CurrentIndex];
3030
} else {
3131
return null;
3232
}
@@ -65,7 +65,7 @@ public override void Animate()
6565
/// <returns>The sequence itself to allow for chaining.</returns>
6666
public Sequence Append(Tween tween)
6767
{
68-
tweens.Add(Prepare(tween));
68+
Tweens.Add(Prepare(tween));
6969
return this;
7070
}
7171

@@ -76,7 +76,7 @@ public Sequence Append(Tween tween)
7676
/// <returns>The sequence itself to allow for chaining.</returns>
7777
public Sequence Prepend(Tween tween)
7878
{
79-
tweens.Insert(0, Prepare(tween));
79+
Tweens.Insert(0, Prepare(tween));
8080
return this;
8181
}
8282

@@ -91,12 +91,12 @@ private Tween Prepare(Tween tween)
9191
private void Next()
9292
{
9393
if (reversed) {
94-
currentIndex--;
94+
CurrentIndex--;
9595
} else {
96-
currentIndex++;
96+
CurrentIndex++;
9797
}
9898

99-
Tween tween = activeTween;
99+
Tween tween = ActiveTween;
100100

101101
if (tween != null) {
102102
tween.Play();
@@ -107,22 +107,22 @@ private void Next()
107107
protected override bool IsFinished()
108108
{
109109
if (reversed) {
110-
return currentIndex < 0;
110+
return CurrentIndex < 0;
111111
} else {
112-
return currentIndex >= tweens.Count;
112+
return CurrentIndex >= Tweens.Count;
113113
}
114114
}
115115

116116
/// <inheritdoc/>
117117
protected override void OnStart()
118118
{
119119
if (reversed) {
120-
currentIndex = tweens.Count - 1;
120+
CurrentIndex = Tweens.Count - 1;
121121
} else {
122-
currentIndex = 0;
122+
CurrentIndex = 0;
123123
}
124124

125-
Tween tween = activeTween;
125+
Tween tween = ActiveTween;
126126

127127
if (tween != null) {
128128
tween.Play();
@@ -132,7 +132,7 @@ protected override void OnStart()
132132
/// <inheritdoc/>
133133
protected override void OnStop()
134134
{
135-
Tween tween = activeTween;
135+
Tween tween = ActiveTween;
136136

137137
if (tween != null) {
138138
tween.Stop();
@@ -142,7 +142,7 @@ protected override void OnStop()
142142
/// <inheritdoc/>
143143
protected override void OnResume()
144144
{
145-
Tween tween = activeTween;
145+
Tween tween = ActiveTween;
146146

147147
if (tween != null) {
148148
tween.Play();
@@ -152,21 +152,21 @@ protected override void OnResume()
152152
/// <inheritdoc/>
153153
protected override void OnLoop()
154154
{
155-
foreach (Tween tween in tweens)
155+
foreach (Tween tween in Tweens)
156156
{
157157
if (loopType == LoopType.PingPong || loopType == LoopType.PingPongWithDelay) {
158158
tween.reversed = !tween.reversed;
159159
}
160160

161-
tween.elapsed = 0f;
161+
tween.Elapsed = 0f;
162162
tween.Animate();
163163
}
164164
}
165165

166166
/// <inheritdoc/>
167167
protected override void OnComplete()
168168
{
169-
foreach (Tween tween in tweens)
169+
foreach (Tween tween in Tweens)
170170
{
171171
if (tween != null) {
172172
tween.Complete();
@@ -177,22 +177,22 @@ protected override void OnComplete()
177177
/// <inheritdoc/>
178178
protected override void OnKill()
179179
{
180-
foreach (Tween tween in tweens)
180+
foreach (Tween tween in Tweens)
181181
{
182182
if (tween != null) {
183183
tween.Kill();
184184
}
185185
}
186186

187-
tweens.Clear();
188-
currentIndex = -1;
187+
Tweens.Clear();
188+
CurrentIndex = -1;
189189
}
190190

191191
/// <inheritdoc/>
192192
protected override void OnReset()
193193
{
194-
tweens.Clear();
195-
currentIndex = -1;
194+
Tweens.Clear();
195+
CurrentIndex = -1;
196196
}
197197

198198
}

0 commit comments

Comments
 (0)