mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-22 18:26:12 +08:00
[unity] Formatting (#889)
This commit is contained in:
parent
5b54167005
commit
06c2482dcd
@ -201,9 +201,8 @@ namespace Spine.Unity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static float AnimationTime (float normalizedTime, float clipLength, bool loop, bool reversed) {
|
static float AnimationTime (float normalizedTime, float clipLength, bool loop, bool reversed) {
|
||||||
if(reversed){
|
if (reversed)
|
||||||
normalizedTime = (1-normalizedTime + (int)normalizedTime) + (int)normalizedTime;
|
normalizedTime = (1-normalizedTime + (int)normalizedTime) + (int)normalizedTime;
|
||||||
}
|
|
||||||
float time = normalizedTime * clipLength;
|
float time = normalizedTime * clipLength;
|
||||||
if (loop) return time;
|
if (loop) return time;
|
||||||
const float EndSnapEpsilon = 1f/30f; // Workaround for end-duration keys not being applied.
|
const float EndSnapEpsilon = 1f/30f; // Workaround for end-duration keys not being applied.
|
||||||
@ -211,9 +210,8 @@ namespace Spine.Unity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static float AnimationTime (float normalizedTime, float clipLength, bool reversed) {
|
static float AnimationTime (float normalizedTime, float clipLength, bool reversed) {
|
||||||
if(reversed){
|
if (reversed)
|
||||||
normalizedTime = (1-normalizedTime + (int)normalizedTime) + (int)normalizedTime;
|
normalizedTime = (1-normalizedTime + (int)normalizedTime) + (int)normalizedTime;
|
||||||
}
|
|
||||||
|
|
||||||
return normalizedTime * clipLength;
|
return normalizedTime * clipLength;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user