Esempio n. 1
0
        internal void Update()
        {
            if (!rotating || !WorldAllowed)
            {
                return;
            }

            holdingShift = Input.GetKey(KeyCode.LeftShift);
            if (!BarrelRolling && CurrentControlScheme.HandleInput(playerTransform, cameraTransform))
            {
                alignTrackingToPlayer();
            }
        }
Esempio n. 2
0
        internal void OnUpdate()
        {
            if (!rotating ||
                !WorldAllowed)
            {
                return;
            }

            holdingShift = Input.GetKey(KeyCode.LeftShift);
            if (CurrentControlScheme.HandleInput(playerTransform, cameraTransform, FlyingSpeed * (holdingShift ? 2f : 1f)))
            {
                alignTrackingToPlayer();
            }
        }