示例#1
0
    // Reset values
    public void ResetValues()
    {
        isFlying        = false;
        isFlyingPending = false;
        flySpeed        = 0;

        isStumbling       = false;
        onGround          = true;
        prevHitHashCode   = -1;
        canUpdatePosition = true;
        playerAnimation.ResetValues();
        turnTime = -simultaneousTurnPreventionTime;

        platformObject = null;

        currentSlotPosition      = SlotPosition.Center;
        targetHorizontalPosition = (int)currentSlotPosition * ObjectGenerator.instance.slotDistance;
        totalMoveDistance        = 0;
        curveOffset = Vector3.zero;
        turnOffset  = prevTurnOffset = Vector3.zero;
        forwardSpeeds.ResetValues();

        thisTransform.position = startPosition;
        thisTransform.rotation = startRotation;
        targetRotation         = startRotation;
        UpdateTargetPosition(targetRotation.eulerAngles.y);
    }
示例#2
0
 // Reset values
 public void ResetValues()
 {
     activePlatformSection = activeSceneSection = 0;
     sectionList.ResetValues();
 }