protected override void OnAwake() { base.OnAwake(); peerContainer = ServerComponents.GetComponent <IPeerContainer>().AssertNotNull(); clientPeerProvider = Components.GetComponent <IClientPeerProvider>().AssertNotNull(); }
public UserProfileService() { var idGenerator = ServerComponents.GetComponent <IRandomNumberGenerator>().AssertNotNull(); serverId = idGenerator.GenerateRandomNumber(); peerContainer = ServerComponents.GetComponent <IPeerContainer>().AssertNotNull(); userIdToPeerIdConverter = ServerComponents.AddComponent(new UserIdToPeerIdConverter()); }
public GameServerProviderService() { peerContainer = ServerComponents.GetComponent <IPeerContainer>().AssertNotNull(); connections = peerContainer.GetPeersCount(); }
public virtual void Startup() { peerContainer = ServerComponents.AddComponent(new PeerContainer()); LogUtils.Log("An application has started."); }