fix: unassigned fields on factories
This commit is contained in:
parent
4ec1a32db2
commit
b9ee1ec232
@ -13,6 +13,9 @@ public class BehaviourControllerFactory
|
||||
{
|
||||
T behaviourController = TypeFactory.Get<T>(args);
|
||||
|
||||
if (!hierarchyObject.Assign(behaviourController))
|
||||
throw AssignException.From(hierarchyObject, behaviourController);
|
||||
|
||||
if (!behaviourController.Assign(hierarchyObject))
|
||||
throw AssignException.From(behaviourController, hierarchyObject);
|
||||
|
||||
|
@ -11,6 +11,9 @@ public class StateEnableFactory
|
||||
{
|
||||
T stateEnable = TypeFactory.Get<T>(args);
|
||||
|
||||
if (!entity.Assign(stateEnable))
|
||||
throw AssignException.From(entity, stateEnable);
|
||||
|
||||
if (!stateEnable.Assign(entity))
|
||||
throw AssignException.From(stateEnable, entity);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user