ManualUpdate() public méthode

public ManualUpdate ( float deltaTime ) : void
deltaTime float
Résultat void
    void HandleMovement(bool tLeft, bool tRight, bool thrustB, bool slowDownB)
    {
        //MOVEMENT

        if (thrustB || slowDownB)
        {
            if (thrustB)
            {
                moveDir += transform.forward * thrustAcceleration;
            }
            if (slowDownB)
            {
                moveDir -= transform.forward * thrustAcceleration;
            }
        }
        else
        {
        }

        if (tLeft || tRight)
        {
            if (tLeft)
            {
                rotSpeed -= rotateSpeed;
            }
            if (tRight)
            {
                rotSpeed += rotateSpeed;
            }
            rotSpeed = Mathf.Clamp(rotSpeed, -rotationMaxSpeed, rotationMaxSpeed);
        }
        else
        {
            if (rotSpeed < 0)
            {
                rotSpeed += rotateSlowdown;
                if (rotSpeed > 0)
                {
                    rotSpeed = 0;
                }
            }
            else if (rotSpeed > 0)
            {
                rotSpeed -= rotateSlowdown;
                if (rotSpeed < 0)
                {
                    rotSpeed = 0;
                }
            }
        }

        moveDir = Vector3.ClampMagnitude(moveDir, thrustLimit);

        sCC.ManualUpdate(Time.fixedDeltaTime);
        trackedPos.Add(mTag, new PlayerTrackedInfo(transform.position, transform.eulerAngles));
    }