[unity] SkeletonUtility method for delaying its update order forward.

This commit is contained in:
pharan 2018-11-13 05:46:22 +08:00
parent 1b95de7ac4
commit aa0dcee09a

View File

@ -136,6 +136,11 @@ namespace Spine.Unity {
bool hasConstraints;
bool needToReprocessBones;
public void ResubscribeEvents () {
OnDisable();
OnEnable();
}
void OnEnable () {
if (skeletonRenderer == null) {
skeletonRenderer = GetComponent<SkeletonRenderer>();