Beispiel #1
0
        private void updatePlacementPosition()
        {
            var snapResult = Composer.SnapScreenSpacePositionToValidTime(inputManager.CurrentState.Mouse.Position);

            // if no time was found from positional snapping, we should still quantize to the beat.
            snapResult.Time ??= Beatmap.SnapTime(EditorClock.CurrentTime, null);

            currentPlacement.UpdateTimeAndPosition(snapResult);
        }
        protected override void Update()
        {
            base.Update();

            currentBlueprint.UpdateTimeAndPosition(SnapForBlueprint(currentBlueprint));
        }