1 2 3 4 5 6
#include "ComponentManager.h" template <typename T> void GameObject::AddComponent(T* component) { ComponentManager::GetInstance().AddComponent(component, mId); }