fix: parameter name typo
This commit is contained in:
parent
efed24de20
commit
620ef911fa
@ -100,14 +100,14 @@ public class UniverseObject : BaseEntity, IUniverseObject
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void AddChild(IUniverseObject parent)
|
public void AddChild(IUniverseObject child)
|
||||||
{
|
{
|
||||||
if (_children.Contains(parent))
|
if (_children.Contains(child))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
_children.Add(parent);
|
_children.Add(child);
|
||||||
parent.Parent = this;
|
child.Parent = this;
|
||||||
OnChildrenAdded?.Invoke(this, new(parent));
|
OnChildrenAdded?.Invoke(this, new(child));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void RemoveChild(IUniverseObject child)
|
public void RemoveChild(IUniverseObject child)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user