Exemplo n.º 1
0
        private void HandleMovingEvent(SoldierMovingEvent e)
        {
            if (e.PlayerGuid != PlayerGuid)
            {
                return;
            }

            isRightMoving = e.IsRightMoving;
            isLeftMoving  = e.IsLeftMoving;
            isJumping     = e.IsJumping;
        }
Exemplo n.º 2
0
        private void HandleMovingEvent(SoldierMovingEvent e)
        {
            if (e.PlayerGuid != PlayerGuid)
            {
                return;
            }

            IsRightMoving = e.IsRightMoving;
            IsLeftMoving  = e.IsLeftMoving;

            if (IsMultidirectionalMoving)
            {
                StopMoving();
            }
        }