Ejemplo n.º 1
0
        protected override void OnAwake()
        {
            base.OnAwake();

            peerContainer      = ServerComponents.GetComponent <IPeerContainer>().AssertNotNull();
            clientPeerProvider = Components.GetComponent <IClientPeerProvider>().AssertNotNull();
        }
        protected override void OnAwake()
        {
            base.OnAwake();

            clientPeerProvider = Components.GetComponent <IClientPeerProvider>().AssertNotNull();

            AddUserIdToPeerIdConverter();

            SubscribeToDisconnectionNotifier();
            SubscribeToUserProfilePropertiesChanged();
            SubscribeToUserProfile();
        }
Ejemplo n.º 3
0
        protected override void OnAwake()
        {
            base.OnAwake();

            clientPeerProvider = Components.GetComponent <IClientPeerProvider>().AssertNotNull();

            if (lookForOperations)
            {
                SubscribeToOperationRequested();
            }

            var coroutinesManager = Components.GetComponent <ICoroutinesManager>().AssertNotNull();

            disconnectInactivityTask = coroutinesManager.StartTask(DisconnectInactivity);
        }