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