chore: bumped dotnet version to 10
This commit is contained in:
@@ -29,22 +29,21 @@ public class NetworkManager : Behaviour, IEnterUniverse, IExitUniverse, INetwork
|
||||
private readonly BehaviourCollector<INetworkEntity> _networkEntityCollector = new();
|
||||
public IBehaviourCollector<INetworkEntity> NetworkEntityCollector => _networkEntityCollector;
|
||||
|
||||
private INetworkCommunicator _networkCommunicator = null!;
|
||||
public INetworkCommunicator NetworkCommunicator
|
||||
{
|
||||
get => _networkCommunicator;
|
||||
get;
|
||||
set
|
||||
{
|
||||
if (_networkCommunicator == value)
|
||||
if (field == value)
|
||||
return;
|
||||
|
||||
INetworkCommunicator? previousCommunicator = _networkCommunicator;
|
||||
_networkCommunicator = value;
|
||||
INetworkCommunicator? previousCommunicator = field;
|
||||
field = value;
|
||||
|
||||
if (previousCommunicator is not null) UnsubscribeCommunicatorMethods(previousCommunicator);
|
||||
if (_networkCommunicator is not null) SubscribeCommunicatorMethods(_networkCommunicator);
|
||||
if (field is not null) SubscribeCommunicatorMethods(field);
|
||||
}
|
||||
}
|
||||
} = null!;
|
||||
|
||||
#region Communicator Subscriptions
|
||||
private void SubscribeCommunicatorMethods(INetworkCommunicator networkCommunicator)
|
||||
|
||||
Reference in New Issue
Block a user