GameObjectPool fixes
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user