GameObjectPool fixes

This commit is contained in:
2024-09-14 21:28:18 +05:00
parent 3df4361779
commit 47574e9b30
6 changed files with 80 additions and 27 deletions

View File

@@ -11,10 +11,19 @@ GameObject::GameObject(Mono::Object managed_obj, GameObject *parent)
: object_handle(managed_obj), parent(parent)
{}
GameObject &GameObject::operator=(GameObject &&o){
GameObject::GameObject(GameObject &&o) :
transform(o.transform),
components(std::move(o.components)),
object_handle(std::move(o.object_handle)),
parent(o.parent)
{
}
GameObject &GameObject::operator=(GameObject &&o){
transform = o.transform;
components = std::move(o.components);
object_handle = std::move(o.object_handle);
parent = o.parent;
return *this;
}