|
@@ -126,7 +126,7 @@ void Urho2DSprite::CreateScene()
|
|
|
SharedPtr<Node> spriteNode(scene_->CreateChild("AnimatedSprite2D"));
|
|
SharedPtr<Node> spriteNode(scene_->CreateChild("AnimatedSprite2D"));
|
|
|
spriteNode->SetPosition(Vector3(0.0f, 0.0f, -1.0f));
|
|
spriteNode->SetPosition(Vector3(0.0f, 0.0f, -1.0f));
|
|
|
|
|
|
|
|
- AnimatedSprite2D* animatedSprite = spriteNode->CreateComponent<AnimatedSprite2D>();
|
|
|
|
|
|
|
+ AnimatedSprite2D* animatedSprite = spriteNode->CreateComponent<AnimatedSprite2D>();
|
|
|
// Set animation
|
|
// Set animation
|
|
|
animatedSprite->SetAnimationSet(animationSet);
|
|
animatedSprite->SetAnimationSet(animationSet);
|
|
|
animatedSprite->SetAnimation("idle");
|
|
animatedSprite->SetAnimation("idle");
|