mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 14:24:53 +08:00
[unity] Fixed one more compile error on older Unity versions introduced in last commit 1af0805. See #3013.
This commit is contained in:
parent
da7d20c4bc
commit
06d5d32a41
@ -109,7 +109,11 @@ namespace Spine.Unity.Examples {
|
|||||||
|
|
||||||
float t = 0;
|
float t = 0;
|
||||||
while (t < 0.5f) {
|
while (t < 0.5f) {
|
||||||
|
#if RIGIDBODY2D_USES_LINEAR_VELOCITY
|
||||||
t = (ragdoll.RootRigidbody.linearVelocity.magnitude > 0.09f) ? 0 : t + Time.deltaTime;
|
t = (ragdoll.RootRigidbody.linearVelocity.magnitude > 0.09f) ? 0 : t + Time.deltaTime;
|
||||||
|
#else
|
||||||
|
t = (ragdoll.RootRigidbody.velocity.magnitude > 0.09f) ? 0 : t + Time.deltaTime;
|
||||||
|
#endif
|
||||||
yield return null;
|
yield return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user