Exemplo n.º 1
0
    private void SetDebugInfo()
    {
        //下面是debugInfo1的信息**************************

        debugInfoText.AppendLine("总体状态");
        debugInfoText.Append("ControlStatus: ");
        debugInfoText.AppendLine(controlStatus.ToString());
        debugInfoText.Append("isInAbnormalStatus: ");
        debugInfoText.AppendLine(isInAbnormalStatus.ToString());
        debugInfoText.Append("controlStatusTotalTime: ");
        debugInfoText.AppendLine(controlStatusTotalTime.ToString());
        debugInfoText.Append("controlStatusCurTime: ");
        debugInfoText.AppendLine(controlStatusCurTime.ToString());
        debugInfoText.Append("重力: ");
        debugInfoText.AppendLine(gravity.ToString());

        debugInfoText.AppendLine("探测器状态");
        debugInfoText.Append("isOnFloor: ");
        debugInfoText.AppendLine(isOnFloor.ToString());
        debugInfoText.Append("isDownFloor: ");
        debugInfoText.AppendLine(isDownFloor.ToString());
        debugInfoText.Append("isLeftDetect: ");
        debugInfoText.AppendLine(isLeftDetect.ToString());
        debugInfoText.Append("isRightDetect: ");
        debugInfoText.AppendLine(isRightDetect.ToString());
        debugInfoText.Append("isAttackedFalling: ");
        debugInfoText.AppendLine(isAttackedFalling.ToString());

        debugInfoText.AppendLine("跳跃状态");
        debugInfoText.Append("isRequestJump: ");
        debugInfoText.AppendLine(isRequestJump.ToString());
        debugInfoText.Append("jumpNumberCur: ");
        debugInfoText.AppendLine(jumpNumberCur.ToString());

        debugInfoText.AppendLine("下蹲状态");
        debugInfoText.Append("isRequestCrouch: ");
        debugInfoText.AppendLine(isRequestCrouch.ToString());


        debugInfoText.AppendLine("结算信息");
        debugInfoText.Append("xSpeed: ");
        debugInfoText.AppendLine(xSpeed.ToString());
        debugInfoText.Append("ySpeed: ");
        debugInfoText.AppendLine(ySpeed.ToString());
        debugInfoText.Append("xMovementPerFrame: ");
        debugInfoText.AppendLine(xMovementPerFrame.ToString());
        debugInfoText.Append("yMovementPerFrame: ");
        debugInfoText.AppendLine(yMovementPerFrame.ToString());
        debugInfoText.Append("newPosition: ");
        debugInfoText.AppendLine(newPosition.ToString());

        debugInfo1.text = debugInfoText.ToString();

        debugInfoText.Clear();

        //下面是debugInfo2的信息**************************

        debugInfoText.Append("TpSpace: ");
        debugInfoText.AppendLine(TpSpace.ToString());
        debugInfoText.AppendLine("被动传送");
        debugInfoText.Append("canPassiveTransport: ");
        debugInfoText.AppendLine(canPassiveTransport.ToString());
        debugInfoText.Append("isPassiveTransport: ");
        debugInfoText.AppendLine(isPassiveTransport.ToString());
        debugInfoText.Append("passiveTransportPosition: ");
        debugInfoText.AppendLine(passiveTransportPosition.ToString());

        debugInfoText.AppendLine("主动传送");
        debugInfoText.Append("canActiveTransport: ");
        debugInfoText.AppendLine(canActiveTransport.ToString());
        debugInfoText.Append("isActiveTransport: ");
        debugInfoText.AppendLine(isActiveTransport.ToString());
        debugInfoText.Append("activeTransportPosition: ");
        debugInfoText.AppendLine(activeTransportPosition.ToString());

        debugInfoText.AppendLine("技能位移");
        debugInfoText.Append("canAbilityMovement: ");
        debugInfoText.AppendLine(canAbilityMovement.ToString());
        debugInfoText.Append("isAbilityMovement: ");
        debugInfoText.AppendLine(isAbilityMovement.ToString());
        debugInfoText.Append("abilityMovement: ");
        debugInfoText.AppendLine(abilityMovement.ToString());
        debugInfoText.Append("abilityMovementSpeed: ");
        debugInfoText.AppendLine(abilityMovementSpeed.ToString());
        debugInfoText.Append("abilityMovementTotalTime: ");
        debugInfoText.AppendLine(abilityMovementTotalTime.ToString());
        debugInfoText.Append("abilityMovementCurTime: ");
        debugInfoText.AppendLine(abilityMovementCurTime.ToString());

        debugInfoText.AppendLine("被动位移");
        debugInfoText.Append("canPassiveMovement: ");
        debugInfoText.AppendLine(canPassiveMovement.ToString());
        debugInfoText.Append("isPassiveMovement: ");
        debugInfoText.AppendLine(isPassiveMovement.ToString());
        debugInfoText.Append("passiveMovement: ");
        debugInfoText.AppendLine(passiveMovement.ToString());
        debugInfoText.Append("passiveMovementSpeed: ");
        debugInfoText.AppendLine(passiveMovementSpeed.ToString());
        debugInfoText.Append("passiveMovementTotalTime: ");
        debugInfoText.AppendLine(passiveMovementTotalTime.ToString());
        debugInfoText.Append("passiveMovementCurTime: ");
        debugInfoText.AppendLine(passiveMovementCurTime.ToString());


        debugInfoText.AppendLine("控制移动");
        debugInfoText.Append("canControllorMovement: ");
        debugInfoText.AppendLine(canControllorMovement.ToString());
        debugInfoText.Append("isControllorMovement: ");
        debugInfoText.AppendLine(isControllorMovement.ToString());
        debugInfoText.Append("controllorMovement: ");
        debugInfoText.AppendLine(controllorMovement.ToString());


        debugInfo2.text = debugInfoText.ToString();

        debugInfoText.Clear();
    }