Explorar o código

[monogame] Fix example code.

pharan %!s(int64=7) %!d(string=hai) anos
pai
achega
61b8fcc696
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      spine-monogame/example/ExampleGame.cs

+ 2 - 0
spine-monogame/example/ExampleGame.cs

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