private void HandleMovingEvent(SoldierMovingEvent e)
        {
            if (e.PlayerGuid != PlayerGuid)
            {
                return;
            }

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

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

            if (IsMultidirectionalMoving)
            {
                StopMoving();
            }
        }