Пример #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);
            }
        }
Пример #2
0
 // Update is called once per frame
 void Update()
 {
     _Machine.Update();
 }
Пример #3
0
 bool IUpdatable.Update()
 {
     _SendMachine.Update();
     _ReceiveMachine.Update();
     return(_Peer.Connected);
 }
Пример #4
0
 bool IUpdatable.Update()
 {
     _Updater.Working();
     _Machine.Update();
     return(true);
 }
Пример #5
0
    // Update is called once per frame
    void Update()
    {
        var code = this.GetHashCode();

        _Machine.Update();
    }