Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #ifndef MYCOMPONENT_H
- #define MYCOMPONENT_H
- #include <AzCore/Component/Component.h>
- #include <AzCore/Component/TickBus.h>
- namespace MyProject123
- {
- class MyComponent
- : public AZ::Component,
- public AZ::TickBus::Handler
- {
- public:
- AZ_COMPONENT(MyComponent, "{53C195D7-9D87-4B29-B964-16E08E728F36}");
- MyComponent();
- virtual ~MyComponent();
- static void Reflect(AZ::ReflectContext* context);
- void Init() override;
- void Activate() override;
- void Deactivate() override;
- // AZ::TickBus
- void OnTick(float deltaTime, AZ::ScriptTimePoint time);
- public:
- int m_value;
- };
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement