Exemple #1
0
        public void ProcessInput(InputData inputData)
        {
            inputHandler.HanldeInput(inputData);

            Vector2 delta = inputData.Current - inputData.Start;

            inputData.Magnitude = delta.magnitude;
            inputData.Delta     = delta.normalized;
            inputData.IsTap     = inputData.Magnitude <= settings.MaxTapMagnitude;
        }