dm 7 years ago
parent
commit
a444368684
2 changed files with 2 additions and 2 deletions
  1. 1 1
      examples/Demo/src/TestCamera.h
  2. 1 1
      examples/Demo/src/TestSliding.h

+ 1 - 1
examples/Demo/src/TestCamera.h

@@ -145,7 +145,7 @@ public:
         spButton button = new Button;
 
         button->setPosition(map->getSize() / 2);
-        button->setResAnim(resources.getResAnim("button"));
+        button->setResAnim(DebugActor::resSystem->getResAnim("button"));
         button->attachTo(map);
         button->setAnchor(0.5f, 0.5f);
         button->addEventListener(TouchEvent::CLICK, CLOSURE(this, &TestCamera::testClick));

+ 1 - 1
examples/Demo/src/TestSliding.h

@@ -30,7 +30,7 @@ public:
         spButton button = new Button;
         _button = button;
         button->setPosition(map->getSize() / 2);
-        button->setResAnim(resources.getResAnim("button"));
+        button->setResAnim(DebugActor::resSystem->getResAnim("button"));
         button->attachTo(map);
         button->setAnchor(0.5f, 0.5f);
         button->addEventListener(TouchEvent::CLICK, CLOSURE(this, &TestSliding::testClick));