chore: Finalize Don't Set Fields to Null Anymore

This commit is contained in:
2023-11-24 16:37:09 +03:00
parent 44bee2df08
commit 8a8c09f043
6 changed files with 12 additions and 16 deletions

View File

@@ -87,7 +87,7 @@ public class BehaviourController : IBehaviourController
public bool Assign(IGameObject gameObject)
{
if (_gameObject is not null)
if (GameObject.Initialized)
return false;
_gameObject = gameObject;