chore: bumped dotnet version to 10
This commit is contained in:
@@ -12,9 +12,8 @@ public class BehaviourController : BaseEntity, IBehaviourController
|
||||
|
||||
private readonly FastList<IBehaviour> behaviours = new(Constants.BEHAVIOURS_SIZE_INITIAL);
|
||||
|
||||
private IUniverseObject _universeObject = null!;
|
||||
public IUniverseObject UniverseObject { get; private set; } = null!;
|
||||
|
||||
public IUniverseObject UniverseObject => _universeObject;
|
||||
public int Count => behaviours.Count;
|
||||
public IBehaviour this[Index index] => behaviours[index];
|
||||
|
||||
@@ -103,7 +102,7 @@ public class BehaviourController : BaseEntity, IBehaviourController
|
||||
if (UniverseObject is not null && UniverseObject.IsInitialized)
|
||||
return false;
|
||||
|
||||
_universeObject = universeObject;
|
||||
UniverseObject = universeObject;
|
||||
OnAssign(universeObject);
|
||||
OnUniverseObjectAssigned?.Invoke(this);
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user