summaryrefslogtreecommitdiff
path: root/Source/Asura.Engine/Graphics/Animation.cpp
blob: 47643aaa17208a857c72752fcfc43b40f5b58994 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "Animation.h"

namespace AsuraEngine
{
    namespace Graphics
    {

        void Animation::OnEnable()
        {
            mSpriteRenderer = mGameObject->GetComponent<SpriteRenderer*>();
        }

        void Animation::OnUpdate(uint32 milliseconds)
        {
            if (!mSpriteRenderer)
                return;
            mSpriteRenderer->SetSprite(NULL);
        }

    }
}