chore: hierarchy objects now get their type name as their Name in constructor
This commit is contained in:
parent
9e4c74ed1d
commit
00f7b1aaab
@ -160,6 +160,11 @@ public class HierarchyObject : BaseEntity, IHierarchyObject
|
||||
_behaviourController ??= Factory.BehaviourControllerFactory.Instantiate(this);
|
||||
}
|
||||
|
||||
public HierarchyObject()
|
||||
{
|
||||
_name = GetType().Name;
|
||||
}
|
||||
|
||||
public IEnumerator<IHierarchyObject> GetEnumerator() => _children.GetEnumerator();
|
||||
IEnumerator IEnumerable.GetEnumerator() => _children.GetEnumerator();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user