mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
Removed useAnimationName from spine-tk2d.
This commit is contained in:
parent
9a347d5eb8
commit
da7ef99c34
@ -40,7 +40,6 @@ using Spine;
|
|||||||
/** Extends SkeletonComponent to apply an animation. */
|
/** Extends SkeletonComponent to apply an animation. */
|
||||||
[ExecuteInEditMode, RequireComponent(typeof(MeshFilter), typeof(MeshRenderer))]
|
[ExecuteInEditMode, RequireComponent(typeof(MeshFilter), typeof(MeshRenderer))]
|
||||||
public class SkeletonAnimation : SkeletonComponent {
|
public class SkeletonAnimation : SkeletonComponent {
|
||||||
public bool useAnimationName;
|
|
||||||
public bool loop;
|
public bool loop;
|
||||||
public Spine.AnimationState state;
|
public Spine.AnimationState state;
|
||||||
|
|
||||||
@ -51,7 +50,6 @@ public class SkeletonAnimation : SkeletonComponent {
|
|||||||
return entry == null ? null : entry.Animation.Name;
|
return entry == null ? null : entry.Animation.Name;
|
||||||
}
|
}
|
||||||
set {
|
set {
|
||||||
if (!useAnimationName) return;
|
|
||||||
if (_animationName == value) return;
|
if (_animationName == value) return;
|
||||||
_animationName = value;
|
_animationName = value;
|
||||||
if (value == null || value.Length == 0)
|
if (value == null || value.Length == 0)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user