Exemplo n.º 1
0
        void IStage.Update()
        {
            if (_UpdateTimeCounter.Second < _UpdateTime)
            {
                return;
            }
            var deltaTime = this._GetDeltaTime();

            _Machine.Update();
            _Updater.Working();

            var lastDeltaTime = deltaTime;

            _Move(lastDeltaTime);
            _Broadcast(_Map.Find(_Player.GetView()));
            _Player.Equipment.UpdateEffect(lastDeltaTime);

            var target = _Player.HaveTransmit();

            if (target != null)
            {
                TransmitEvent(target);
            }
        }
Exemplo n.º 2
0
 // Update is called once per frame
 void Update()
 {
     _Machine.Update();
 }
Exemplo n.º 3
0
 bool IUpdatable.Update()
 {
     _SendMachine.Update();
     _ReceiveMachine.Update();
     return(_Peer.Connected);
 }
Exemplo n.º 4
0
 bool IUpdatable.Update()
 {
     _Updater.Working();
     _Machine.Update();
     return(true);
 }
Exemplo n.º 5
0
    // Update is called once per frame
    void Update()
    {
        var code = this.GetHashCode();

        _Machine.Update();
    }