Beispiel #1
0
        void IBootable.Shutdown()
        {
            _Viewer.WriteLine(string.Format("Leave Transmitter {0} {1}", _Peer.RemoteEndPoint, _Id));

            _Command.Unregister(_CommandSendString);
            _Command.Unregister(_CommandSendContinousNumber);
            _Command.Unregister(_CommandReceiveString);
            _Command.Unregister(_CommandReceiveContinousNumber);
            _Command.Unregister(_CommandView);
            _SendMachine.Termination();
            _ReceiveMachine.Termination();
        }
        void IStage.Leave()
        {
            _Machine.Termination();
            _Updater.Shutdown();

            _DifferenceNoticer.Set(new IIndividual[0]);
            _DifferenceNoticer.JoinEvent -= this._BroadcastJoin;
            _DifferenceNoticer.LeftEvent -= this._BroadcastLeft;

            _Binder.Unbind <IEmotion>(this);
            _Binder.Unbind <IDevelopActor>(_Player);
            _Binder.Unbind <IPlayerProperys>(this);
            _Gate.Left(_Player);
        }
    // Use this for initialization

    void OnDestroy()
    {
        _Machine.Termination();
    }
 void IBootable.Shutdown()
 {
     _Machine.Termination();
     _Updater.Shutdown();
 }