Explorar el Código

[xna] Fix example code.

pharan hace 7 años
padre
commit
cdc37a5554
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      spine-xna/example/src/ExampleGame.cs

+ 2 - 0
spine-xna/example/src/ExampleGame.cs

@@ -119,6 +119,8 @@ namespace Spine {
 			state = new AnimationState(stateData);
 			state = new AnimationState(stateData);
 
 
 			if (name == "spineboy-ess") {
 			if (name == "spineboy-ess") {
+				skeleton.SetAttachment("head-bb", "head");
+
 				stateData.SetMix("run", "jump", 0.2f);
 				stateData.SetMix("run", "jump", 0.2f);
 				stateData.SetMix("jump", "run", 0.4f);
 				stateData.SetMix("jump", "run", 0.4f);