Use Initialize instead of Update so animations aren't applied before the first Update.

This commit is contained in:
NathanSweet 2014-01-26 21:02:30 +01:00
parent ee1b835602
commit 41c36a89d3
2 changed files with 5 additions and 5 deletions

View File

@ -285,11 +285,11 @@ public class SkeletonComponent : MonoBehaviour {
}
public virtual void OnEnable () {
Update();
Initialize();
}
public virtual void Reset () {
Update();
Initialize();
}
#if UNITY_EDITOR

View File

@ -287,11 +287,11 @@ public class SkeletonComponent : MonoBehaviour {
}
public virtual void OnEnable () {
Update();
Initialize();
}
public virtual void Reset () {
Update();
Initialize();
}
#if UNITY_EDITOR