We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c1c41f commit 3dc5172Copy full SHA for 3dc5172
src/private/Core/GameObject/GameObject.cpp
@@ -3,6 +3,7 @@
3
GameObject::GameObject(std::string name) {
4
this->m_name = name;
5
this->m_input = Input::GetInstance();
6
+ this->m_time = Time::GetInstance();
7
}
8
9
void GameObject::Init() {
src/public/Core/GameObject/GameObject.h
@@ -7,6 +7,7 @@
#include "Core/GameObject/Component/Mesh.h"
#include "Math/Transform.h"
#include "Core/Input/Input.h"
10
+#include "Core/Time.h"
11
12
class GameObject {
13
friend class Scene;
@@ -16,6 +17,7 @@ class GameObject {
16
17
std::vector<Component*> m_components;
18
protected:
19
Input* m_input;
20
+ Time* m_time;
21
public:
22
Transform transform;
23
GameObject(std::string name);
0 commit comments