fix: UnAssign Problems
This commit is contained in:
@@ -30,7 +30,7 @@ public class StateEnable : IStateEnable
|
||||
|
||||
public bool Assign(IEntity entity)
|
||||
{
|
||||
if (_entity.Initialized)
|
||||
if (_entity is not null && _entity.Initialized)
|
||||
return false;
|
||||
|
||||
_entity = entity;
|
||||
|
Reference in New Issue
Block a user