Quellcode durchsuchen

Merge branch 'origin/master'

NathanSweet vor 11 Jahren
Ursprung
Commit
c73a687823
2 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 1 1
      spine-corona/examples/dragon.lua
  2. 1 1
      spine-corona/examples/goblins.lua

+ 1 - 1
spine-corona/examples/dragon.lua

@@ -23,7 +23,7 @@ skeleton:setToSetupPose()
 local stateData = spine.AnimationStateData.new(skeletonData)
 local stateData = spine.AnimationStateData.new(skeletonData)
 -- AnimationState has a queue of animations and can apply them with crossfading.
 -- AnimationState has a queue of animations and can apply them with crossfading.
 local state = spine.AnimationState.new(stateData)
 local state = spine.AnimationState.new(stateData)
-state:setAnimation("flying", true)
+state:setAnimationByName(0, "flying", true, 0)
 
 
 local lastTime = 0
 local lastTime = 0
 local animationTime = 0
 local animationTime = 0

+ 1 - 1
spine-corona/examples/goblins.lua

@@ -22,7 +22,7 @@ skeleton:setToSetupPose() -- Required after changing skin to attach attachments
 -- AnimationState has a queue of animations and can apply them with crossfading.
 -- AnimationState has a queue of animations and can apply them with crossfading.
 local stateData = spine.AnimationStateData.new(skeletonData)
 local stateData = spine.AnimationStateData.new(skeletonData)
 local state = spine.AnimationState.new(stateData)
 local state = spine.AnimationState.new(stateData)
-state:setAnimation("walk", true)
+state:setAnimationByName(0, "walk", true, 0)
 
 
 local lastTime = 0
 local lastTime = 0
 local animationTime = 0
 local animationTime = 0