fix: hierarchy object remove child parameter name fixed
This commit is contained in:
parent
4081693d32
commit
2be99d2142
@ -108,13 +108,13 @@ public class HierarchyObject : BaseEntity, IHierarchyObject
|
||||
OnChildrenAdded?.Invoke(this, parent);
|
||||
}
|
||||
|
||||
public void RemoveChild(IHierarchyObject parent)
|
||||
public void RemoveChild(IHierarchyObject child)
|
||||
{
|
||||
if (!_children.Remove(parent))
|
||||
if (!_children.Remove(child))
|
||||
return;
|
||||
|
||||
parent.SetParent(null);
|
||||
OnChildrenRemoved?.Invoke(this, parent);
|
||||
child.SetParent(null);
|
||||
OnChildrenRemoved?.Invoke(this, child);
|
||||
}
|
||||
|
||||
protected virtual void OnAssign(IBehaviourController behaviourController) { }
|
||||
|
Loading…
x
Reference in New Issue
Block a user